Add post-solve region cost optimizer - #166
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Benchmark This PRRun benchmarks by commenting on this PR: Everything after Examples:
Any PR whose title contains |
|
/benchmark --dataset 18 --same-machine |
Tiny Hypergraph Same Machine Benchmark FailedMain
Main Branch DetailsPR Details(benchmark results were not produced) Workflow: View run |
|
/benchmark --dataset 18 --same-machine |
Tiny Hypergraph Same Machine Benchmark FailedMain
Main Branch DetailsPR Details(benchmark results were not produced) Workflow: View run |
Summary
UnravelTinyHyperGraphSolveras an unconditional post-solve optimization stageEngineering invariants
The optimizer has no dataset classifier, sample ID, density gate, route-count gate, target-reduction cutoff, mutation cap, hot-region cap, reroute cap, or detour cap. Every solved graph executes the same stages. Optional resource limits remain explicit caller controls.
The search follows first-order descent: it exhausts boundary untwists, searches single-route replacements, and opens the much larger pair-ejection neighborhood only at a one-route local optimum. This reduced Pipeline7 sample 13's pair search from 5.88 million to 120 thousand iterations without a size threshold or skipped pipeline stage.
Peak-plateau moves remain available to unlock later bottleneck reductions. Once the final peak is known, reverse path relinking tentatively removes accepted boundary and reroute mutations. A removal is committed only when it:
If a search never lowers the peak, the exact solved input assignments and their original order are restored.
Standalone benchmark
./benchmark.shAll 8 committed SRJ18 Pipeline7 hypergraphs completed, preserved every route, and improved. The requested P50/P95 50% target is met.
Pipeline7 profiling
No downstream pipeline branch, detailed-router threshold, sample-specific condition, or geometric-connectivity inference is used. The focused universal Pipeline7 integration is in tscircuit/tscircuit-autorouter#2115.
Validation
bun test— 144 passed, 0 failedbunx tsc --noEmitbun run format:checkgit diff --check./benchmark.sh— 100% completion and improvement; P50/P95 target met