Skip to content

Exhaustive coefficient reduction for binary rows - #1686

Open
aliceb-nv wants to merge 2 commits into
bnatt-presolvefrom
bhw-reduce
Open

Exhaustive coefficient reduction for binary rows#1686
aliceb-nv wants to merge 2 commits into
bnatt-presolvefrom
bhw-reduce

Conversation

@aliceb-nv

@aliceb-nv aliceb-nv commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Add a Bradley–Hammer–Wolsey coefficient-reduction presolver for short, one-sided constraints over binary variables. It integerizes and normalizes eligible rows,
searches for smaller equivalent integer weights, and retains only rewrites that preserve binary solutions without weakening the original row’s LP relaxation.

Add targeted and randomized tests covering rational coefficients, both inequality orientations, mixed signs, cache behavior, rejection cases, and exhaustive
preservation of the 0/1 feasible set.

This is useful to reduce fractional rows to pure integral for the bnatt* class to allow for a future CPUFJ fast path.

Results:

   Instance                     Coefficients reduced / original NNZ    Dropped / original NNZ
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  ━━━━━━━━━━━━━━━━━━━━━━━━
   bnatt500                                                 29.835%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   bnatt400                                                 29.528%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   neos-3656078-kumeu                                        3.140%                    0.003%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   cryptanalysiskb128n5obj16                                 1.414%                    0.470%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   cryptanalysiskb128n5obj14                                 1.414%                    0.470%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   neos-960392                                               0.949%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   rocI-4-11                                                 0.336%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   uccase9                                                   0.307%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   gmu-35-40                                                 0.186%                        0%
  ───────────────────────────  ─────────────────────────────────────  ────────────────────────
   momentum1                                                 0.145%                        0%

Description

Issue

Checklist

  • I am familiar with the Contributing Guidelines.
  • Testing
    • New or existing tests cover these changes
    • Added tests
    • Created an issue to follow-up
    • NA
  • Documentation
    • The documentation is up to date with these changes
    • Added new documentation
    • NA

Stack created with GitHub Stacks CLIGive Feedback 💬

@aliceb-nv
aliceb-nv requested review from a team as code owners August 6, 2026 15:30
@aliceb-nv
aliceb-nv requested review from akifcorduk, chris-maes and tmckayus and removed request for a team August 6, 2026 15:30
@copy-pr-bot

copy-pr-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@aliceb-nv aliceb-nv added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Aug 6, 2026
@aliceb-nv aliceb-nv added this to the 26.10 milestone Aug 6, 2026
@aliceb-nv

Copy link
Copy Markdown
Contributor Author

/ok to test 852fa50

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

CI Test Summary

8 failed · 23 passed · 0 skipped

@aliceb-nv

Copy link
Copy Markdown
Contributor Author

/ok to test c836178

@aliceb-nv

Copy link
Copy Markdown
Contributor Author

/ok to test d0323a6

// points, which are supersets of BHW's ceilings and roofs because we skip their ordering condition.
// That costs nothing: with all coefficients positive the activity is monotone, so the maximum of
// w.x over the feasible points is attained at a maximal one and the minimum over the infeasible
// points at a minimal one. Checked exhaustively over 9.4M (row, weight) pairs against full 2^k

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can remote the sentence starting with "Checked"

// points at a minimal one. Checked exhaustively over 9.4M (row, weight) pairs against full 2^k
// equivalence, in both directions, before landing.
//
// BHW's minimization is not implemented. Section 5 obtains the minimum equivalent inequality by LP

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can remove this paragraph

// vectors for a 12-entry row, measured at 187us for the worst shape. Lemma 3.6 supplies the lower
// bound that seeds and prunes the search.
//
// TODO: extend the fallback path to the row generation of Section 6. On the PaPILO-reduced corpus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's shorten this an avoid giving numbers on an instance specific example.

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

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants