

def test_simple_paraboloid_constrained_SLSQP(self):
    prob = Problem()
    root = prob.root = Group()
    root.add('p1', IndepVarComp('x', 50.0), promotes=['*'])
    root.add('p2', IndepVarComp('y', 50.0), promotes=['*'])
    root.add('comp', Paraboloid(), promotes=['*'])
    root.add('con', ExecComp('c = 15.0 - x + y'), promotes=['*'])
    prob.driver = ScipyOptimizer()
    prob.driver.options['optimizer'] = 'SLSQP'
    prob.driver.options['tol'] = 1e-08
    prob.driver.add_desvar('x', lower=(- 50.0), upper=50.0)
    prob.driver.add_desvar('y', lower=(- 50.0), upper=50.0)
    prob.driver.add_objective('f_xy')
    prob.driver.add_constraint('c', upper=0.0)
    prob.driver.options['disp'] = False
    prob.setup(check=False)
    prob.run()
    assert_rel_error(self, prob['x'], 7.16667, 1e-06)
    assert_rel_error(self, root['y'], (- 7.833334), 1e-06)

dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/drivers/test/test_scipy_optimizer.py TestScipyOptimize.test_simple_paraboloid_constrained_SLSQP/VarMisuse@237/337 `prob`->`root`