Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbynum committed Sep 18, 2023
1 parent f31d250 commit 371c5c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyomo/contrib/appsi/solvers/tests/test_persistent_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,17 +1292,17 @@ def test_bug_2(self, name: str, opt_class: Type[PersistentSolver], only_child_va
if not opt.available():
raise unittest.SkipTest
opt.update_config.treat_fixed_vars_as_params = fixed_var_option

m = pe.ConcreteModel()
m.x = pe.Var(bounds=(-10, 10))
m.y = pe.Var()
m.obj = pe.Objective(expr=3*m.y - m.x)
m.obj = pe.Objective(expr=3 * m.y - m.x)
m.c = pe.Constraint(expr=m.y >= m.x)

m.x.fix(1)
res = opt.solve(m)
self.assertAlmostEqual(res.best_feasible_objective, 2, 5)

m.x.unfix()
m.x.setlb(-9)
m.x.setub(9)
Expand Down

0 comments on commit 371c5c9

Please sign in to comment.