Commit 38e377d
fix: model_specs_are_optimal stuck on DecisionMVC→HC→QA→ILP chain
The new DecisionMVC→HamiltonianCircuit reduction created a path
DecisionMVC → HC(50 verts) → QA(2500 vars) → ILP that HiGHS can't
solve in reasonable time.
Fix: try brute force first for small instances (≤2^20 configs) before
falling back to ILP via reduction. DecisionMVC with 4 vertices has
only 16 configs — instant via brute force.
Also add CLAUDE.md note: overhead expressions describe scaling, not
exact sizes — read reduce_to() code for actual sizes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 06b4c1a commit 38e377d
2 files changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
0 commit comments