Skip to content

Commit

Permalink
Merge pull request #364 from PyPSA/xpress-writesol
Browse files Browse the repository at this point in the history
xpress: writesol instead of tofile
  • Loading branch information
FabianHofmann authored Oct 21, 2024
2 parents 03f3cc7 + 130daf6 commit 679bc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ def solve_problem_from_file(
if solution_fn is not None:
try:
# TODO: possibly update saving of solution file
m.tofile(path_to_string(solution_fn), filetype="sol")
m.writesol(path_to_string(solution_fn))
except Exception as err:
logger.info("Unable to save solution file. Raised error: %s", err)

Expand Down

0 comments on commit 679bc20

Please sign in to comment.