Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,10 @@

m.solve()

# if the solver is stopped (timelimit for example), postsolve the problem
if m.getAttrib("solvestatus") == xpress.solvestatus_stopped:
m.postsolve()

Check warning on line 1483 in linopy/solvers.py

View check run for this annotation

Codecov / codecov/patch

linopy/solvers.py#L1483

Added line #L1483 was not covered by tests

if basis_fn is not None:
try:
m.writebasis(path_to_string(basis_fn))
Expand Down
Loading