Repository navigation
Knapsack presolve - #3807
Open
Opt-Mucca wants to merge 36 commits into
Open
Knapsack presolve#3807Opt-Mucca wants to merge 36 commits into
Opt-Mucca wants to merge 36 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## latest #3807 +/- ##
==========================================
+ Coverage 75.98% 76.11% +0.12%
==========================================
Files 467 469 +2
Lines 116543 117524 +981
Branches 18163 18333 +170
==========================================
+ Hits 88555 89452 +897
- Misses 27748 27832 +84
Partials 240 240 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
This PR introduces a knapsack specific presolve file and many new knapsack specific presolve techniques. I've taken plenty of them from SCIP in
cons_knapsack.cand have come up with some others myself. Each technique has a large comment with a knapsack that gets strengthened via the technique. Over my test set the change is 1% performance improving over all and 3% over affected (I expect this to be an under-estimator as I've removed a lot of pure binary problems from the test set).The two general things I'm still unsure of:
@fwesselm I'm opening the PR to see if you find any clear issues and save me from any useless performance runs or if you've got any good ideas for the second point. Currently I only see this PR changing via a couple of lines, i.e., where exactly the technique in
Hpresolve.cppis called and how many times it's called.Additional note: The changes in
HighsLpUtilswere made because the number of rows are printed as--5if they increased by 5. I spent a while trying to disaggregate some knapsacks and eventually gave up (great for some instances but catastrophic for others and I couldn't find a balance).Checklist
latestbranch