<s> '''<STR_LIT>''' <EOL> from openmdao . examples . simple . paraboloid_derivative import ParaboloidDerivative <EOL> from openmdao . lib . drivers . api import COBYLAdriver , CONMINdriver , NEWSUMTdriver , SLSQPdriver , Genetic <EOL> from openmdao . main . api import Assembly <EOL> class DemoOpt ( Assembly ) : <EOL> """<STR_LIT>""" <EOL> def configure ( self ) : <EOL> """<STR_LIT>""" <EOL> self . add ( '<STR_LIT>' , ParaboloidDerivative ( ) ) <EOL> self . add ( '<STR_LIT>' , CONMINdriver ( ) ) <EOL> self . driver . workflow . add ( '<STR_LIT>' ) <EOL> self . driver . add_objective ( '<STR_LIT>' ) <EOL> self . driver . add_parameter ( '<STR_LIT>' , low = - <NUM_LIT> , high = <NUM_LIT> ) <EOL> self . driver . add_parameter ( '<STR_LIT>' , low = - <NUM_LIT> , high = <NUM_LIT> ) <EOL> self . driver . iprint = <NUM_LIT:0> <EOL> self . driver . itmax = <NUM_LIT:30> <EOL> self . driver . fdch = <NUM_LIT> <EOL> self . driver . fdchm = <NUM_LIT> <EOL> self . driver . ctlmin = <NUM_LIT> <EOL> self . driver . delfun = <NUM_LIT> <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> import time <EOL> opt_problem = DemoOpt ( ) <EOL> t1 = time . time ( ) <EOL> opt_problem . run ( ) <EOL> t2 = time . time ( ) <EOL> print "<STR_LIT:\n>" <EOL> print "<STR_LIT>" % type ( opt_problem . driver ) <EOL> print "<STR_LIT>" , opt_problem . comp . exec_count <EOL> print "<STR_LIT>" , opt_problem . comp . derivative_exec_count <EOL> print "<STR_LIT>" % opt_problem . driver . eval_objective ( ) <EOL> print "<STR_LIT>" % ( opt_problem . comp . x , opt_problem . comp . y ) <EOL> print "<STR_LIT>" , t2 - t1 , "<STR_LIT>" </s>
