Repository navigation
Weight caps: re-solve HiGHS infeasibility verdicts without presolve - #76
Open
Autoplectic wants to merge 2 commits into
Open
Autoplectic wants to merge 2 commits into
Autoplectic wants to merge 2 commits into
Conversation
added 2 commits
November 24, 2026 22:16
HiGHS's presolve calls feasible box LPs of the weight-cap relaxation infeasible, and the branch and bound dropped every such box. On ((1,0),(2,2),(1,0)) it dropped the box holding a 3-state generator's heaviest state at depth 81 (3,101 false verdicts at 1,000 and 2,000 boxes), so the "certified" generator coverage bound came out at C_mu = 1.0459, above that generator's entropy 1.0420. An infeasible verdict is now solved again without presolve, and a box is dropped only when that also says infeasible and an exact Farkas certificate verifies. certified_lp_minimum retries without presolve when its Farkas test fails, so certified_generator_weight_cap no longer fails on such boxes. With the fix the bound on that process meets the generator's entropy to 3e-10.
This branch has not been deployed
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.
Summary
_HeaviestStatesRelaxation.bound(behindgenerator_weight_cap,generator_coverage_boundandgenerator_heaviest_term_bound) dropped every box whose LP HiGHS called infeasible. HiGHS's presolve gets this wrong on these LPs: on((1,0),(2,2),(1,0))it made 3,101 false infeasibility calls at 1,000 and 2,000 boxes. One of them dropped the box holding a 3-state generator's heaviest state at depth 81, so the generator coverage bound came out atC_mu = 1.0459, above that generator's entropy, 1.0420.certified_bound) verifies; otherwise it keeps the trivial bound 1.certified_lp_minimumretries without presolve when its Farkas test fails, socertified_generator_weight_capno longer fails on such boxes.docs/generators/generative_models.rston when a box is dropped. With float data a nonempty box is always feasible (the explicit states can have weight 0), so the certificate only matters for rationalized data.With the fix the generator coverage bound on that process is 1.0419595092. It meets the generator's entropy, 1.0419595095, to 3e-10. In short probes on three other processes, no box stayed infeasible without presolve, so the exact certificate never ran.
Recomputed bounds
Every lower bound in the research dataset that uses these caps was recomputed on this branch: 118 generator coverage bounds and 55 generator heaviest-term bounds.
generative_model, which runs the bound withdeadline=share(0.3). Under the same 1,200 s deadline this branch gives that value exactly, with all 4,608 LPs feasible, so the fix adds no work there.Test plan
tests/test_generator_caps.py: the depth-81 box itself (onmain,boundreturnsNonefor it); a mocked presolve verdict is solved again without presolve; a box is dropped only with a Farkas certificate.tests/test_certificates.py: a false infeasible verdict incertified_lp_minimumis solved again without presolve and certified.ruff checkandruff format --checkon the changed files.