#! /usr/bin/env python # def knapsack_01_test ( ): #*****************************************************************************80 # ## KNAPSACK_01_TEST tests the KNAPSACK_01 library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 13 November 2015 # # Author: # # John Burkardt # import platform from subset_gray_next import subset_gray_next_test from knapsack_01_brute import knapsack_01_brute_test print ( '' ) print ( 'KNAPSACK_01_TEST:' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the KNAPSACK_01 library.' ) subset_gray_next_test ( ) knapsack_01_brute_test ( ) # # Terminate. # print ( '' ) print ( 'KNAPSACK_01_TEST:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) knapsack_01_test ( ) timestamp ( )