Skip to content

Commit 008816e

Browse files
committed
xpress: writesol instead of tofile
1 parent 07be103 commit 008816e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linopy/solvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def run_xpress(
890890

891891
if solution_fn is not None:
892892
try:
893-
m.tofile(path_to_string(solution_fn), filetype="sol")
893+
m.writesol(path_to_string(solution_fn))
894894
except Exception as err:
895895
logger.info("Unable to save solution file. Raised error: %s", err)
896896

0 commit comments

Comments
 (0)