Skip to content

Commit 679bc20

Browse files
Merge pull request #364 from PyPSA/xpress-writesol
xpress: writesol instead of tofile
2 parents 03f3cc7 + 130daf6 commit 679bc20

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
@@ -1472,7 +1472,7 @@ def solve_problem_from_file(
14721472
if solution_fn is not None:
14731473
try:
14741474
# TODO: possibly update saving of solution file
1475-
m.tofile(path_to_string(solution_fn), filetype="sol")
1475+
m.writesol(path_to_string(solution_fn))
14761476
except Exception as err:
14771477
logger.info("Unable to save solution file. Raised error: %s", err)
14781478

0 commit comments

Comments
 (0)