Add 39 Tier 3 ILP reductions + shared linearization helpers#767
Merged
Add 39 Tier 3 ILP reductions + shared linearization helpers#767
Conversation
…entation plan - 39 new reduction-rule entries in reductions.typ with standardized multiline ILP equation blocks (variables, constraints, objective) - Expanded 9 complex entries with full variable indexing, big-M values, and flow schemes (MixedChinesePostman, StackerCrane, AcyclicPartition, BiconnectivityAugmentation, BoundedComponentSpanningForest, StrongConnectivityAugmentation, ConsecutiveOnesMatrixAugmentation, StringToStringCorrection, RootedTreeStorageAssignment) - Added equation blocks to all existing Tier 1/2 ILP entries - Fixed ShortestWeightConstrainedPath MTZ constraint inversion - Fixed 10 undefined/mismatched symbols across entries - Standardized ILP problem-def with multiline equation - Design spec: docs/superpowers/specs/2026-03-24-tier3-ilp-reductions-design.md - Implementation plan: docs/superpowers/plans/2026-03-24-tier3-ilp-reductions.md 2 problems deferred: PartialFeedbackEdgeSet (no poly-size ILP for L<n), RootedTreeArrangement (compound vec![n;2*n] config). Ref #762. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…-M, abs-diff, minimax, one-hot) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements all remaining Tier 3 ILP reductions covering graph, scheduling, flow, sequencing, matrix, and miscellaneous NP-hard problems. Each reduction includes unit tests with closed-loop round-trip verification and canonical example specs for the example database. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #767 +/- ##
==========================================
+ Coverage 97.63% 97.84% +0.21%
==========================================
Files 503 583 +80
Lines 59714 65521 +5807
==========================================
+ Hits 58299 64112 +5813
+ Misses 1415 1409 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
ilp_helpersmodule with reusable linearization primitives (McCormick products, MTZ ordering, flow conservation, big-M activation, abs-diff, minimax, one-hot assignment)Test plan
make checkpasses (fmt + clippy + all tests)example_dbcoverage test verifies all registered reductions have canonical examples🤖 Generated with Claude Code