Skip to content

Commit cc95d73

Browse files
Merge branch 'master' into pre-commit-ci-update-config
2 parents 61fb6d0 + a6d6b28 commit cc95d73

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

linopy/solvers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,10 @@ def solve_problem_from_file(
15811581

15821582
m.solve()
15831583

1584+
# if the solver is stopped (timelimit for example), postsolve the problem
1585+
if m.getAttrib("solvestatus") == xpress.solvestatus_stopped:
1586+
m.postsolve()
1587+
15841588
if basis_fn is not None:
15851589
try:
15861590
m.writebasis(path_to_string(basis_fn))

0 commit comments

Comments
 (0)