Skip to content

Commit 73e9bc5

Browse files
committed
Fix typo
1 parent c7629df commit 73e9bc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

switch_model/solve.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,9 +1020,7 @@ def solve(model):
10201020
solver_status = results.solver.status
10211021
solver_message = results.solver.message
10221022
termination_condition = results.solver.termination_condition
1023-
solution_status = (
1024-
results.solutions[-1].status if len(results.solutions) != 0 else None
1025-
)
1023+
solution_status = model.solutions[-1].status if len(model.solutions) != 0 else None
10261024

10271025
if (
10281026
solver_status != SolverStatus.ok

0 commit comments

Comments
 (0)