Commit 423506c
* feat: add 10 reduction rules from #770
Add 10 new reduction rules connecting existing problem models:
Tier 1a (simple):
- Partition → BinPacking (#396): capacity=S/2, identity extraction
- ExactCoverBy3Sets → MaximumSetPacking (#823): identity transformation
- NAESatisfiability → MaxCut (#821): literal-pair edges + variable edges
ThreePartition scheduling (5 rules):
- ThreePartition → ResourceConstrainedScheduling (#477): 3 processors, resource=size
- ThreePartition → SequencingWithReleaseTimesAndDeadlines (#469): filler-task slots
- ThreePartition → SequencingToMinimizeWeightedTardiness (#473): filler-task slots
- ThreePartition → FlowShopScheduling (#482): 3-machine separators
- ThreePartition → JobShopScheduling (#485): 2-processor separators
ILP/graph:
- ILP/i32 → ILP/bool (#769): FBBT + truncated binary encoding
- MaxCut → MinimumCutIntoBoundedSets (#849): complement graph bisection
Also adds num_literal_pairs() getter to NAESatisfiability model and
updates dominated-rules allow-list and path parity tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: register 9 missing rules in mod.rs and address review findings
- Register all 9 unregistered rule modules in rules/mod.rs (were dead code)
- Wire 9 canonical rule example specs in canonical_rule_example_specs()
- Add ExactCoverBy3Sets -> ILP to dominated-rules allow-list
- Rename misleading test_..._infeasible to test_..._two_triples
- Fix unused variable warning in JobShopScheduling example builder
Test count: 4258 -> 4312 (54 previously-dead tests now compiled and passing)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use MinimizeStepsThenOverhead in MaxCut->QUBO parity test
The new reduction rules (especially MaxCut -> MinCutBounded) created
an alternative 3-step path to QUBO via complete graph construction,
producing O(n^4) QUBO variables. MinimizeSteps tied at 3 steps and
the tie-breaker selected this expensive path. Using
MinimizeStepsThenOverhead with actual problem size (Petersen: 10v, 15e)
ensures the compact SpinGlass path is chosen.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 183b19a commit 423506c
File tree
24 files changed
+3099
-4
lines changed- src
- models/formula
- rules
- unit_tests/rules
24 files changed
+3099
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
0 commit comments