Require triangulation and simplify automatic routing

Remove the dependency fallback and joint portal lane retry, make tiered search opt-in, and consolidate tests while adding low-length-cost routing boards.
This commit is contained in:
Jan Petykiewicz 2026-12-01 22:30:29 -08:00
commit 7476209ef3
2 changed files with 222 additions and 446 deletions

View file

@ -127,7 +127,7 @@ Increase the iteration limit when later reroutes might resolve conflicts. Adjust
| `max_iterations` | `10` | Nonnegative integer maximum for congestion iterations per attempt. Automatic's initial probe may use fewer. Zero skips warm-start and corridor searches. |
| `base_penalty` | `100.0` | Finite, nonnegative initial penalty for overlapping other routes. |
| `multiplier` | `1.5` | Finite, nonnegative penalty multiplier between unresolved iterations. |
| `use_tiered_strategy` | `True` | Allow a cheaper bend proxy in the first iteration when applicable. |
| `use_tiered_strategy` | `False` | Opt into a first iteration without congestion scoring when corridor guidance is absent. That iteration substitutes the clipped bounding-box proxy when the configured proxy is `arc`. |
| `net_order` | `"user"` | Start from input order or sort by the sum of the horizontal and vertical distances between ports with `"shortest"` or `"longest"`. |
| `warm_start_enabled` | `True` | Build greedy seeds before congestion iterations. |
| `shuffle_nets` | `False` | Shuffle routing order between iterations. |

View file

@ -35,9 +35,9 @@ Set `TopologyOptions(mode=...)` and pass it as `topology` in `RoutingOptions`.
### Mode requirements
- Guide and seed modes need Shapely 2.1 or later with GEOS 3.10 or later when planning corridors. Nets that receive no corridor can use ordinary lattice search. A caller-supplied seed takes precedence over a generated one. Set `node_limit=0` to verify supplied seeds without planning corridors. [Constrained triangulation requirements](https://shapely.readthedocs.io/en/2.1.2/reference/shapely.constrained_delaunay_triangles.html)
- Inire requires Shapely 2.1 or newer with GEOS 3.10 or newer. In guide and seed modes, nets that receive no corridor can use ordinary lattice search. A caller-supplied seed takes precedence over a generated one. Set `node_limit=0` to verify supplied seeds without planning corridors. [Constrained triangulation requirements](https://shapely.readthedocs.io/en/2.1.2/reference/shapely.constrained_delaunay_triangles.html)
- Use `infer_terminal_headings` with automatic or bundle mode if your ports may change direction and the layout supports bundle planning. Compare fixed and flexible headings in [complex-routing example 1](../../examples/advanced.md#complex-routing-example-1).
- Automatic starts with smaller budgets and can retry up to your ceiling. When corridor planning is unavailable, it can fall back to lattice search.
- Automatic starts with smaller budgets and can retry up to your ceiling. It can try lattice search after constructive planning and corridor-guided search leave unresolved nets.
[Compare all five modes on one board](../complex-routing-example-1.md#compare-all-routing-modes)