def test_include_constraint_equality_w_external_var(self): theta = MX.sym('theta') aop = AbstractOptimizationProblem() x = aop.create_variable('x', 2) aop.include_constraint(x + 2 == theta)
def test_include_constraint_equality(self): aop = AbstractOptimizationProblem() x = aop.create_variable('x', 2) aop.include_constraint(x + 2 == 1)