Skip to content

Commit 44d6c7f

Browse files
fix: don't return OK for GLPK status integer undefined (#449)
1 parent 9838a63 commit 44d6c7f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Upcoming Version
99
* Fix the parsing of solutions returned by the CBC solver when setting a MIP duality
1010
gap tolerance.
1111
* Improve the mapping of termination conditions for the SCIP solver
12+
* Treat GLPK's `integer undefined` status as not-OK
1213

1314
Version 0.5.3
1415
--------------

linopy/solvers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ def solve_problem_from_file(
573573
"""
574574
CONDITION_MAP = {
575575
"integer optimal": "optimal",
576+
"integer undefined": "infeasible_or_unbounded",
576577
"undefined": "infeasible_or_unbounded",
577578
}
578579
sense = read_sense_from_problem_file(problem_fn)

0 commit comments

Comments
 (0)