Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbynum committed Feb 23, 2024
1 parent 97e01d9 commit 80847ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pyomo/contrib/solver/ipopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def __init__(
),
)
self.writer_config: ConfigDict = self.declare(
'writer_config',
NLWriter.CONFIG(),
'writer_config', NLWriter.CONFIG()
)


Expand Down
8 changes: 2 additions & 6 deletions pyomo/contrib/solver/tests/solvers/test_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1547,9 +1547,7 @@ def test_presolve_with_zero_coef(
exp = TerminationCondition.provenInfeasible
else:
exp = TerminationCondition.locallyInfeasible
self.assertEqual(
res.termination_condition, exp
)
self.assertEqual(res.termination_condition, exp)

m = pe.ConcreteModel()
m.w = pe.Var()
Expand All @@ -1573,9 +1571,7 @@ def test_presolve_with_zero_coef(
res = opt.solve(
m, load_solutions=False, raise_exception_on_nonoptimal_result=False
)
self.assertEqual(
res.termination_condition, exp
)
self.assertEqual(res.termination_condition, exp)

@parameterized.expand(input=_load_tests(all_solvers))
def test_scaling(self, name: str, opt_class: Type[SolverBase], use_presolve: bool):
Expand Down

0 comments on commit 80847ce

Please sign in to comment.