Skip to content

Global bounds: chords entropy model, bound tightening off by default - #90

Open
Autoplectic wants to merge 1 commit into
mainfrom
stage5-chords
Open

Autoplectic wants to merge 1 commit into
mainfrom
stage5-chords

Conversation

@Autoplectic

Copy link
Copy Markdown
Member

Summary

  • generator_global_bound and separating_global_bound take entropy="chords". Each -w log2 w term is replaced by its chords on a grid of masses, an SOS2 constraint (Beale & Tomlin 1970), and the model is solved again with the minimizer's weights added to the grids, warm-started from the last round, until the chords meet the entropy to 1e-9. The chords lie below the entropy, so the dual bound and an "infeasible" verdict hold for the entropy itself, and slack is 0. Results carry entropy, rounds and chord_gap.
  • The default stays SCIP's entropy expression (entropy="log"), now with obbt=False. On that expression, OBBT cut off the optimum of a 3 x 3 joint at k = 3 ("optimal" 1.447803 against a feasible 1.343763). Whether it does depends on the order in which the model's variables are created, so the cut-off can come and go with unrelated changes.
  • The second opinion of separating_decomposition is now entropy="chords", presolve=False (it was presolve=False, obbt=False).

Validation

  • Restricted global bound at K(P) on 29 small processes, 240 s per run. The chords never rose above a known generator's entropy by more than 6e-7, which is SCIP's feasibility tolerance. They were at least 3.6 times slower than the entropy expression with OBBT wherever both finished. Under the same load, on 9 closable brackets:
    • the entropy expression with OBBT finished 7, in 25–218 s;
    • without OBBT it finished 6, taking 1.2–4.4 times as long;
    • the chords finished none.
  • Static bound at k = 5 on 3 joints: the chords took 3–15 times as long, and all three settings agreed to 1e-5.

Test plan

  • pytest: 3006 passed, 9 skipped
  • ruff check and ruff format --check
  • Sphinx build, no warnings

generator_global_bound and separating_global_bound take entropy="chords":
each entropy term is replaced by its chords, an SOS2 constraint (Beale and
Tomlin 1970), refined at the minimizer with warm starts until the chords
meet the entropy to 1e-9, so the dual bound holds for the entropy itself.

SCIP takes several times longer on the chords, so the default stays SCIP's
entropy expression, now with optimization-based bound tightening off: on
that expression it cut off the optimum of a 3 x 3 joint at k = 3, depending
on the order in which the model's variables are created. The second opinion
of separating_decomposition is now the chords with presolve off.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant