Record alternate routing strategy experiments

This commit is contained in:
Jan Petykiewicz 2026-11-26 12:10:41 -08:00
commit 9ddef652e1

View file

@ -258,6 +258,27 @@ The initial broad guide-first experiment raised weighted cost on an obstructed c
An exploratory planner tried nine placements of a straight–S-bend–straight connection per radius, selected mutually clear paths, and passed the complete layout through inire's verifier. It routed all nets on ten staggered grids with the same weighted costs as automatic and a small improvement in the public-default objective on each grid. Single runs under the public-default profile took 0.10–0.25 seconds against automatic's 1.95–5.04 seconds. These fixtures share the same offset and bend radius. Varied shifts, obstructed approaches, and layouts that mix local links with longer routes would test how broadly the approach applies.
### Alternate routing strategy experiments
The experiments below use `2f2add9` as the baseline. The matched-budget profile uses 500 search and seed nodes and three congestion iterations. The public-default profile uses the API defaults and fixture geometry. Timed routing runs start with the same inputs for each policy. Boards run concurrently and policy order rotates between repeats.
**Refinement before geometry construction.** One prototype scores the same candidate from its component lengths and ports before building polygons. It rechecks the score after constructing surviving candidates. A second prototype checks an improving window against static obstacles, the other nets, and the unchanged parts of its own path. It first verifies the incumbent in the current collision world and falls back to full candidate verification if that check fails. inire still verifies the final layout.
| Fixed-heading Terminal-Bench, public defaults | Median of three runs |
| --- | ---: |
| Baseline | 5.82 s |
| Score before polygon construction | 4.39 s |
| Verify the changed window | 4.54 s |
| Both changes | 3.09 s |
Both changes together reproduced the exact path seeds, verified net IDs, per-net costs, and geometric bounds on all 57 boards in both profiles. Each profile verified 384 of 388 nets and completed 55 boards. On the full public-default sweep, refinement polygon builds dropped from 22,400 to 10,529. This is the strongest general-purpose result.
**Constructive S-bend placement.** A nine-position scan routed all 273 nets on the 16 grids whose links admitted a single exact-span S-bend. The tests included three radii, offsets from 2 to 36, mixed widths, and a blocked midpoint. The sum of public-default board medians from three repeats fell from 41.79 to 2.50 seconds. Weighted cost matched on 14 boards and improved on two. The native objective improved on all 16. At the matched budget, one mixed-radius board incurred 2.84 additional native cost units at the same weighted cost. Trying 17 positions added time and produced no additional fully routed boards. The off-lattice offsets and the crossing with a turning exit used the regular router.
**Hybrid S-bend seeding.** In a separate sweep capped at 500 search nodes, seeding 12 local links on a board with an independent long detour cut the public-objective median from 5.57 to 2.63 seconds. Both runs verified 13/13 nets and the hybrid improved both costs. On the board where the long route interacts with nearby links, the attempted hybrid added 7.21 seconds before returning the same 12/13-net fallback. Independent routing regions are a better target for partial seeding.
**Joint portal-lane allocation.** A bounded search assigned distinct lanes to up to four nets using the same portal. A length and turn-cost objective reduced A* expansions from 3,488 to 2,942 on a four-track passage with a verified feasibility witness. All four nets routed at the same costs. The three-run median fell from 2.66 to 2.19 seconds. The timed runs started without the witness paths. An objective that also penalized guide overlap gave 2.68 seconds. In the twelve-board sweep under public defaults, both joint objectives increased coverage from 2/6 to 3/6 on the sole dual-passage fixture. On a single-passage fixture with the same three verified nets, weighted cost improved by 12.66 units and native cost rose by 2.33 units. The sum of public-default board medians moved by less than 1% for either objective. Joint selection among the existing alternate corridors yielded the same final paths in seven matched-budget cases and reduced total expansions by about 0.5%.
### External and fallback benchmarks
`--case external` runs six fixed-placement problems from two public sources. The fixtures preserve net IDs and device locations, with optical ports snapped to a 0.1 µm lattice and expressed relative to the imported board. Device boxes become obstacles with outward access cutouts at the selected ports. The timed runs start from empty initial paths. The converted inputs are checked into the repo so benchmark runs work offline. [Fixture data](../inire/tests/data/external_routing_benchmarks.json)