Skip to content

Fix-3590 - #3812

Open
Opt-Mucca wants to merge 2 commits into
latestfrom
fix-3590
Open

Opt-Mucca wants to merge 2 commits into
latestfrom
fix-3590

Conversation

@Opt-Mucca

@Opt-Mucca Opt-Mucca commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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 help neos-1171448 on all three seeds. It was 1% improving across all instances and 12% improving across affected, but I'd assume this is distorted by neos-1171448 and luck.

Checklist

  • I have read the contributing guidelines
  • This PR targets the latest branch
  • Tests are passing
  • Documentation was updated where relevant
  • This PR is not primarily AI-generated (per the AI contributions policy in CONTRIBUTING.md)

@Opt-Mucca
Opt-Mucca requested a review from fwesselm November 26, 2026 14:26
@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.09%. Comparing base (3a864cc) to head (5470dbc).
⚠️ Report is 193 commits behind head on latest.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fwesselm fwesselm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Opt-Mucca Opt-Mucca changed the title Add fix Fix-3590 Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants