Skip to content

Commit 27a040a

Browse files
authored
Merge pull request #2 from Toflamus/fix/mindtpy-fix
Black the format of pyomo/pyomo/contrib/mindtpy/algorithm_base_class.py
2 parents ef3bcfc + e964ac6 commit 27a040a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyomo/contrib/mindtpy/algorithm_base_class.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,8 @@ def _mirror_direct_solve_results(self, results, obj, prob):
394394
# explicit bounds, infer them from the objective value. For a direct
395395
# continuous optimal solve, primal==dual.
396396
if (
397-
(lb is None or ub is None)
398-
and self.results.solver.termination_condition == tc.optimal
399-
):
397+
lb is None or ub is None
398+
) and self.results.solver.termination_condition == tc.optimal:
400399
obj_val = value(obj.expr, exception=False)
401400
if obj_val is not None:
402401
if lb is None:

0 commit comments

Comments
 (0)