Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for warmstart in HiGHS #309

Merged
merged 4 commits into from
Jul 5, 2024
Merged

support for warmstart in HiGHS #309

merged 4 commits into from
Jul 5, 2024

Conversation

fneum
Copy link
Member

@fneum fneum commented Jun 26, 2024

It adds support for reading in solution or basis files for a warm start and functionality to write solution and basis files from solved HiGHS models.

I am currently identifying the kind of warm start (solution or basis) by the file suffix. Is this the best way? The documentation of the Model.solve() function currently states it's only a basis file that is used for the warm start (and that's how we have done it for the other solvers.)

The writing functions do not throw errors for unsolved models, so I am not handling these.

The 0 for writing the solution indicates the format of the .sol file. I am choosing raw.

@fneum fneum requested a review from FabianHofmann June 26, 2024 15:24
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.66%. Comparing base (2fc1c1b) to head (169a7d9).

Files Patch % Lines
linopy/solvers.py 72.72% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #309      +/-   ##
==========================================
- Coverage   89.72%   89.66%   -0.06%     
==========================================
  Files          16       16              
  Lines        4037     4046       +9     
  Branches      942      945       +3     
==========================================
+ Hits         3622     3628       +6     
- Misses        282      283       +1     
- Partials      133      135       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FabianHofmann FabianHofmann merged commit 20a6dcd into master Jul 5, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants