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

View file

@ -72,25 +72,25 @@ The point-terminal variant accepts a westbound arrival for `net_08`, so the orig
Each run uses 100 nodes per search and one congestion iteration, with warm start and refinement disabled. Set `infer_terminal_headings=True` for `bundle` so `net_08` can arrive westbound. Fixed eastbound headings raise a mismatch in that mode.
| Mode | With triangulation available | Without triangulation |
| --- | --- | --- |
| `automatic` | 9/9 verified. The turnaround plan completes the layout without building a mesh. | 9/9 verified through the same turnaround plan. Automatic uses lattice search if constructive planning leaves work. |
| `off` | 0/9 verified at this budget. The worker runs lattice search directly. | Same search and result. |
| `guide` | 1/9 verified. The worker builds a mesh and suggests corridors to lattice search. | Raises a dependency error when planning corridors. |
| `seed` | 1/9 verified. The worker builds a mesh and searches for starting paths inside the corridors before its routing iteration. | Raises a dependency error when planning corridors. |
| `bundle` | 9/9 verified. The worker builds and verifies ordered tracks directly from the board geometry. | Same plan and result. |
| Mode | Result |
| --- | --- |
| `automatic` | 9/9 verified. The turnaround plan completes the layout without building a mesh. |
| `off` | 0/9 verified at this budget. The worker runs lattice search directly. |
| `guide` | 1/9 verified. The worker builds a mesh and suggests corridors to lattice search. |
| `seed` | 1/9 verified. The worker builds a mesh and searches for starting paths inside the corridors before its routing iteration. |
| `bundle` | 9/9 verified. The worker builds and verifies ordered tracks directly from the board geometry. |
![Five panels show route outcomes at the same search budget. Automatic and bundle verify all nine nets. Off, guide, and seed leave partial paths.](figures/complex-routing-example-1-modes.png)
### Triangulation support
An active corridor search needs Shapely 2.1+ with GEOS 3.10+. Check the versions in the environment that runs Inire.
Inire requires Shapely 2.1 or newer with GEOS 3.10 or newer. Check the versions in the environment that runs Inire.
```sh
python -c 'import shapely; print(shapely.__version__, shapely.geos_version_string)'
```
Automatic builds a mesh when it reaches corridor search on a compatible backend. Here the turnaround plan finishes first. Shapely 2.0.7 supports lattice and constructive routing. Guide and seed can also replay supplied paths without a mesh at `node_limit=0`.
Automatic builds a mesh when it reaches corridor search. Here the turnaround plan finishes first. Guide and seed also replay supplied paths without a mesh at `node_limit=0`.
- [Shapely installation](https://shapely.readthedocs.io/en/2.1.2/installation.html)
- [Constrained triangulation API](https://shapely.readthedocs.io/en/2.1.2/reference/shapely.constrained_delaunay_triangles.html)