#NEWLINE# def bench_run_global( self , numtrials = 50 , methods = None ) : #NEWLINE# #INDENT# '\n        Run the optimization tests for the required minimizers.\n        ' #NEWLINE# if ( methods is None ) : #NEWLINE# #INDENT# methods = [ 'DE' , 'basinh.' ] #NEWLINE# #UNINDENT# method_fun = { #NEWLINE# #INDENT# 'DE' : m . run_differentialevolution , #NEWLINE# 'basinh.' : self . run_basinhopping , #NEWLINE# #UNINDENT# } #NEWLINE# for i in range ( numtrials ) : #NEWLINE# #INDENT# for m in methods : #NEWLINE# #INDENT# method_fun [ m ] ( )