We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61fb6d0 + a6d6b28 commit cc95d73Copy full SHA for cc95d73
1 file changed
linopy/solvers.py
@@ -1581,6 +1581,10 @@ def solve_problem_from_file(
1581
1582
m.solve()
1583
1584
+ # if the solver is stopped (timelimit for example), postsolve the problem
1585
+ if m.getAttrib("solvestatus") == xpress.solvestatus_stopped:
1586
+ m.postsolve()
1587
+
1588
if basis_fn is not None:
1589
try:
1590
m.writebasis(path_to_string(basis_fn))
0 commit comments