Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Dec 16, 2024
1 parent 14b1b8a commit 66b5b24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyomo/opt/results/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def check_optimal_termination(results):
TerminationCondition as FutureTerminationCondition,
SolutionStatus as FutureSolutionStatus,
)

if hasattr(results, 'solution_status'):
if results.solution_status == FutureSolutionStatus.optimal and (
results.termination_condition
Expand Down

0 comments on commit 66b5b24

Please sign in to comment.