Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## latest #3812 +/- ##
==========================================
+ Coverage 75.98% 76.09% +0.11%
==========================================
Files 467 468 +1
Lines 116543 117064 +521
Branches 18163 18203 +40
==========================================
+ Hits 88555 89083 +528
+ Misses 27748 27741 -7
Partials 240 240 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fwesselm
left a comment
There was a problem hiding this comment.
Thanks, @Opt-Mucca. I like the idea, just one question.
| (rootlpsolobj - firstlpsolobj) * 1.001) | ||
| (getLp().getObjective() - firstlpsolobj <= | ||
| (rootlpsolobj - firstlpsolobj) * 1.001 || | ||
| getLp().getObjective() - rootlpsolobj < 0.0001 * feastol)) |
There was a problem hiding this comment.
@Opt-Mucca, would it make sense to use rootlpsolobj to scale the tolerance here:
0.001 * feastol * std::max(1.0, std::abs(rootlpsolobj))
This would grow with rootlpsolobj.
There was a problem hiding this comment.
Honestly not sure. I intended the guard to be a pure absolute check for near zero changes. That change would make it relative and affect many instances with large dual bounds (this may be worth it). Want me to run another experiment for it?
There was a problem hiding this comment.
If you would like to merge and move on that would be fine with me. On the other hand, (too) much time is spent in separation for some models, so it would be good to check.
Description
This PR adds an absolute check for the dual bound progress between cut rounds to determine whether it is stalling. The issue #3590 pointed out that for instances where the dual bound never changes but cuts are applied, this test can get flaky. Example: Bound is at 1.000000000001, apply cuts bound goes to 1.0000000000002, apply new round of cuts and bound is confusingly back to 1.000000000001 etc. If the first "improvement" is so small, then it's also easy to get within 0.1% of it again.
I've added a check that says that separation is stalling if the dual bound is progress in one round is less than
0.0001 * feastol. I wanted to be conservative and protect against corner cases. This surprisingly affected 5% of instances, and does helpneos-1171448on all three seeds. It was 1% improving across all instances and 12% improving across affected, but I'd assume this is distorted byneos-1171448and luck.Checklist
latestbranch