Module Expr Str Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore TupleLoad Num Num Num Num Num Num Num body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareLt Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Str Assign NameStore NameLoad For NameStore BinOpAdd NameLoad NameLoad body If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Num Assign TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Str Assign NameStore NameLoad For NameStore BinOpAdd NameLoad NameLoad body If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num Str decorator_list Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str keyword Num Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str BinOpSub BinOpAdd BinOpAdd BinOpPow BinOpSub NameLoad Num Num BinOpMult NameLoad NameLoad BinOpPow BinOpAdd NameLoad Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Call AttributeLoad NameLoad attr ListLoad Num Num keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad NameLoad attr ListLoad Num Num keyword Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A  Testing driver LatinHypercubeDriver. N/A unittest random seed types GeneratorType N/A numpy np openmdao.api IndepVarComp Group Problem Component openmdao.test.paraboloid Paraboloid openmdao.test.util assert_rel_error openmdao.drivers.latinhypercube_driver LatinHypercubeDriver OptimizedLatinHypercubeDriver openmdao.drivers.latinhypercube_driver _is_latin_hypercube _rand_latin_hypercube _mmlhs _LHC_Individual TestLatinHypercubeDriver N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self seed N/A N/A self hypercube_sizes N/A N/A 3 1 N/A 5 5 N/A 20 8 N/A seed N/A N/A self N/A N/A N/A N/A self seedval 1 N/A N/A seed N/A self seedval N/A N/A N/A N/A np random seed N/A self seedval N/A test_rand_latin_hypercube N/A N/A self N/A N/A N/A N/A n k N/A self hypercube_sizes N/A N/A test_lhc N/A _rand_latin_hypercube n k N/A N/A N/A self assertTrue N/A _is_latin_hypercube test_lhc N/A _test_mmlhs_latin N/A N/A self n k N/A N/A N/A p 1 N/A population 3 N/A generations 6 N/A test_lhc N/A _rand_latin_hypercube n k N/A best_lhc N/A _LHC_Individual test_lhc 1 p N/A mmphi_initial N/A N/A best_lhc mmphi N/A q N/A 1 2 5 10 20 50 100 N/A N/A lhc_start N/A _LHC_Individual test_lhc q p N/A lhc_opt N/A _mmlhs lhc_start population generations N/A N/A N/A N/A lhc_opt mmphi N/A N/A best_lhc mmphi N/A N/A best_lhc lhc_opt N/A N/A N/A self assertTrue N/A N/A N/A best_lhc mmphi mmphi_initial N/A N/A '_mmlhs' didn't yield lower phi. Seed was {} format N/A self seedval N/A test_mmlhs_latin N/A N/A self N/A N/A N/A N/A n k N/A self hypercube_sizes N/A N/A N/A N/A self _test_mmlhs_latin n k N/A test_algorithm_coverage_lhc N/A N/A self N/A N/A N/A prob N/A Problem N/A root N/A prob root N/A Group N/A N/A N/A root add p1 N/A IndepVarComp x 50.0 promotes N/A * N/A N/A N/A root add p2 N/A IndepVarComp y 50.0 promotes N/A * N/A N/A N/A root add comp N/A Paraboloid promotes N/A * N/A N/A prob driver N/A LatinHypercubeDriver 100 N/A N/A N/A N/A prob driver add_desvar x lower -50.0 upper 50.0 N/A N/A N/A N/A prob driver add_desvar y lower -50.0 upper 50.0 N/A N/A N/A N/A prob driver add_objective f_xy N/A N/A N/A prob setup check False N/A runList N/A N/A N/A prob driver _build_runlist N/A N/A N/A prob run N/A N/A N/A self assertTrue N/A N/A type runList GeneratorType _build_runlist did not return a generator. N/A xDict N/A N/A yDict N/A N/A countRuns 0 N/A inputLine runList N/A N/A countRuns 1 N/A N/A x y N/A N/A N/A dict inputLine values N/A N/A N/A xDict append N/A N/A np floor x N/A N/A N/A yDict append N/A N/A np floor y N/A N/A N/A self assertTrue N/A countRuns 100 Incorrect number of runs generated. N/A valuesInRange True N/A value N/A xDict yDict N/A N/A N/A N/A value -50 N/A value 49 N/A N/A valuesInRange False N/A N/A N/A self assertTrue valuesInRange One of the input values was outside the given range. N/A N/A N/A self assertTrue N/A N/A len xDict 100 One of the intervals wasn't covered. N/A N/A N/A self assertTrue N/A N/A len yDict 100 One of the intervals wasn't covered. N/A test_algorithm_coverage_olhc N/A N/A self N/A N/A N/A prob N/A Problem N/A root N/A prob root N/A Group N/A N/A N/A root add p1 N/A IndepVarComp x 50.0 promotes N/A * N/A N/A N/A root add p2 N/A IndepVarComp y 50.0 promotes N/A * N/A N/A N/A root add comp N/A Paraboloid promotes N/A * N/A N/A prob driver N/A OptimizedLatinHypercubeDriver 100 population 5 N/A N/A N/A N/A prob driver add_desvar x lower -50.0 upper 50.0 N/A N/A N/A N/A prob driver add_desvar y lower -50.0 upper 50.0 N/A N/A N/A N/A prob driver add_objective f_xy N/A N/A N/A prob setup check False N/A runList N/A N/A N/A prob driver _build_runlist N/A N/A N/A prob run N/A N/A N/A self assertTrue N/A N/A type runList GeneratorType _build_runlist did not return a generator. N/A xDict N/A N/A yDict N/A N/A countRuns 0 N/A inputLine runList N/A N/A countRuns 1 N/A N/A x y N/A N/A N/A dict inputLine values N/A N/A N/A xDict append N/A N/A np floor x N/A N/A N/A yDict append N/A N/A np floor y N/A N/A N/A self assertTrue N/A countRuns 100 Incorrect number of runs generated. N/A valuesInRange True N/A value N/A xDict yDict N/A N/A N/A N/A value -50 N/A value 49 N/A N/A valuesInRange False N/A N/A N/A self assertTrue valuesInRange One of the input values was outside the given range. N/A N/A N/A self assertTrue N/A N/A len xDict 100 One of the intervals wasn't covered. N/A N/A N/A self assertTrue N/A N/A len yDict 100 One of the intervals wasn't covered. N/A N/A 
    def test_seed_works(self):


    def test_generate_numpydocstring(self):
        prob = Problem()
        prob.root = SellarStateConnection()
        prob.driver = ScipyOptimizer()

        prob.driver.options['optimizer'] = 'SLSQP'
        prob.driver.options['tol'] = 1.0e-8
        prob.driver.options['disp'] = False

        prob.driver.add_desvar('z', lower=np.array([-10.0]), upper=np.array([10.0]),
                              indices=[0])
        prob.driver.add_desvar('x', lower=0.0, upper=10.0)

        prob.driver.add_objective('obj')
        prob.driver.add_constraint('con1', upper=0.0)
        prob.driver.add_constraint('con2', upper=0.0)
        prob.driver.options['disp'] = False

        test_string = prob.driver.generate_docstring()
        original_string = '    """

    Options
    -------
    options['disp'] :  bool(False)
        Set to False to prevent printing of Scipy convergence messages
    options['maxiter'] :  int(200)
        Maximum number of iterations.
    options['optimizer'] :  str('SLSQP')
        Name of optimizer to use
    options['tol'] :  float(1e-08)
        Tolerance for termination. For detailed control, use solver-specific options.

    """
'
        self.assertEqual(original_string, test_string)
     N/A ParaboloidArray N/A Component N/A N/A  Evaluates the equation f(x,y) = (x-3)^2 + xy + (y+4)^2 - 3  __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super ParaboloidArray self __init__ N/A N/A N/A self add_param X val N/A N/A np array N/A 0.0 0.0 N/A N/A N/A self add_output f_xy val 0.0 N/A N/A self _history N/A N/A solve_nonlinear N/A N/A self params unknowns resids N/A N/A N/A f(x,y) = (x-3)^2 + xy + (y+4)^2 - 3
         N/A x N/A N/A params N/A X N/A 0 N/A y N/A N/A params N/A X N/A 1 N/A N/A N/A N/A self _history append N/A x y N/A N/A unknowns N/A f_xy N/A N/A N/A N/A N/A x 3.0 2 N/A x y N/A N/A y 4.0 2 3.0 N/A N/A TestLatinHypercubeDriverArray N/A N/A unittest TestCase N/A test_rand_latin_hypercube N/A N/A self N/A N/A N/A top N/A Problem N/A root N/A top root N/A Group N/A N/A N/A root add p1 N/A IndepVarComp X N/A N/A np array N/A 50.0 50.0 promotes N/A * N/A N/A N/A root add comp N/A ParaboloidArray promotes N/A * N/A N/A top driver N/A OptimizedLatinHypercubeDriver num_samples 4 seed 0 population 20 generations 4 norm_method 2 N/A N/A N/A N/A top driver add_desvar X lower N/A N/A np array N/A -50.0 -50.0 upper N/A N/A np array N/A 50.0 50.0 N/A N/A N/A N/A top driver add_objective f_xy N/A N/A N/A top setup check False N/A N/A N/A top run N/A results N/A N/A N/A top root comp _history N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main