#NEWLINE# def test_optimum_solution( self ) : #NEWLINE# #INDENT# for ( name , klass ) in self . benchmark_functions : #NEWLINE# #INDENT# if ( ( name in [ 'Benchmark' , 'LennardJones' ] ) or name . startswith ( 'Problem' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# f = klass ( ) #NEWLINE# print ( name , f . fun ( np . asarray ( f . global_optimum [ 0 ] ) ) , f . fglob ) #NEWLINE# assert_ ( f . success ( f . global_optimum [ 0 ] ) )