#NEWLINE# def run_rosenbrock( self , methods = None ) : #NEWLINE# #INDENT# b = _BenchOptimizers ( 'Rosenbrock function' , fun = rosen , der = rosen_der , hess = rosen_hess ) #NEWLINE# for i in range ( 10 ) : #NEWLINE# #INDENT# b . bench_run ( np . random . uniform ( ( - 3 ) , 3 , 3 ) , methods = methods ) #NEWLINE# #UNINDENT# return b