Exhaustive coefficient reduction for binary rows - #1686
Open
aliceb-nv wants to merge 2 commits into
Open
Conversation
aliceb-nv
requested review from
akifcorduk,
chris-maes and
tmckayus
and removed request for
a team
August 6, 2026 15:30
Contributor
Author
|
/ok to test 852fa50 |
CI Test Summary8 failed · 23 passed · 0 skipped |
Contributor
Author
|
/ok to test c836178 |
Contributor
Author
|
/ok to test d0323a6 |
akifcorduk
reviewed
Aug 10, 2026
| // 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 |
Contributor
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
Let's shorten this an avoid giving numbers on an instance specific example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Description
Issue
Checklist
Stack created with GitHub Stacks CLI • Give Feedback 💬