Skip to content

Add option to turn off central rounding - #3803

Open
galabovaa wants to merge 1 commit into
latestfrom
central-rounding-option
Open

galabovaa wants to merge 1 commit into
latestfrom
central-rounding-option

Conversation

@galabovaa

@galabovaa galabovaa commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add an advanced option mip_heuristic_run_central_rounding (default true). Setting it to false skips the analytic centre calculation at the root node. That also skips the centre-based variable fixings, not only the central rounding heuristic. It replaces the hard-coded compute_analytic_centre = true in HighsMipSolverData::evaluateRootNode

The default behaviour is unchanged, and both settings are deterministic: when the option is off, the IPX task is never started.

Add unit test no-central-rounding

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)

Related issue

Closes #3761

@galabovaa galabovaa changed the title option Add option to turn off central rounding Nov 26, 2026
@galabovaa galabovaa self-assigned this Nov 26, 2026
@galabovaa galabovaa added the Enhancement New feature or request label Nov 26, 2026
@galabovaa
galabovaa requested a review from jajhall November 26, 2026 09:49
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.07%. Comparing base (240211f) to head (45f69fc).
⚠️ Report is 3 commits behind head on latest.

Files with missing lines Patch % Lines
highs/lp_data/HighsOptions.h 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           latest    #3803   +/-   ##
=======================================
  Coverage   76.06%   76.07%           
=======================================
  Files         468      468           
  Lines      116985   117001   +16     
  Branches    18195    18195           
=======================================
+ Hits        88990    89005   +15     
- Misses      27755    27756    +1     
  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.

@jajhall jajhall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From my experiments last year, I think that it's sufficient to set compute_analytic_centre to false - and then the rules that need its result are not applied as a result.

After all, the MP solver already has to handle the situation where the AC calculation fails.

Is this correct @Opt-Mucca?

@galabovaa

Copy link
Copy Markdown
Contributor Author

From my experiments last year, I think that it's sufficient to set compute_analytic_centre to false - and then the rules that need its result are not applied as a result.

That was my understanding as well

@Opt-Mucca

Copy link
Copy Markdown
Collaborator

Is this correct @Opt-Mucca?

Yup! The changes look good to me.

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

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants