Skip to content

Fourier-Motzkin presolve - #3255

Open
fwesselm wants to merge 33 commits into
latestfrom
FMPresolveMerged
Open

Fourier-Motzkin presolve#3255
fwesselm wants to merge 33 commits into
latestfrom
FMPresolveMerged

Conversation

@fwesselm

@fwesselm fwesselm commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR adds the Fourier-Motzkin presolve reduction as described by Zhang, Y., Ploskas, N. & Sahinidis, N.V. A novel linear optimization presolve technique based on Fourier-Motzkin elimination. Math. Prog. Comp. 18, 345–378 (2026):

  • The reduction is currently only used for MIPs and runs once (in presolve's main loop).
  • The objective reformulation needed to handle continuous variables with non-zero cost is inactivated in the default settings (controlled by option presolve_fm_obj_reformulation).
  • The effect on MIP solver performance is relatively small; testing showed a 1% speedup.

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)

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.74523% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.49%. Comparing base (58cda86) to head (07743ce).
⚠️ Report is 25 commits behind head on latest.

Files with missing lines Patch % Lines
highs/presolve/HPresolve.cpp 96.58% 17 Missing ⚠️
highs/presolve/HighsPostsolveStack.cpp 95.49% 11 Missing ⚠️
highs/lp_data/HighsOptions.h 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           latest    #3255      +/-   ##
==========================================
+ Coverage   73.26%   73.49%   +0.22%     
==========================================
  Files         445      446       +1     
  Lines      108185   109125     +940     
  Branches    17341    17521     +180     
==========================================
+ Hits        79263    80198     +935     
- Misses      28646    28650       +4     
- Partials      276      277       +1     

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

Comment thread highs/lp_data/HighsOptions.h Outdated

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

@fwesselm If this is performance improving and you're confident it's now ready to be merged, then I'm happy with it! I've still got concerns about introducing complexity and destroying problem structure, but I don't think they trump performance, and I trust you to know best here. (An aside: Very happy to see the pdqsort from std::sort change. I should've caught that....)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants