Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## latest #3766 +/- ##
==========================================
+ Coverage 75.99% 76.02% +0.02%
==========================================
Files 467 468 +1
Lines 116562 116766 +204
Branches 18165 18181 +16
==========================================
+ Hits 88578 88767 +189
- Misses 27744 27759 +15
Partials 240 240 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
filikat
marked this pull request as ready for review
November 21, 2026 20:48
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
calledOptimizeModelhas become a very long and complicated function, doing many different things. This PR splits the function into various phases so that the solve path can be kept more organised and adding more features (eventually LP folding) becomes easier.While doing this, many small fixes for pathological edge cases have been found (including #3756).
On top of the refactoring, this PR:
calledOptimizeModel, so that it is not needed to remember to callreturnFromOptimizeModelon each exit path.HighsUndoStackthat allows to make modifications to the options, making sure that they are undone before returning.Most of the diff in
Highs.cppconsists of code moving around without changes.OptimizeModelRefactor.mdis a summary generated by Claude meant to facilitate the review of the changes and to find where a given feature has moved. It also lists all the small fixes and behaviour changes. It can be removed before merging the PR.Checklist
latestbranchRelated issue
Closes #3756