Illustrate the intermediate stages of complex-routing example 1

This commit is contained in:
Jan Petykiewicz 2026-11-27 19:28:48 -08:00
commit c3e420eadb

View file

@ -2,19 +2,19 @@
Start with a board that exercises the behavior you want to measure. Use the [case guide](benchmarks.md#choose-a-case) to select it or the [corpus registry](../inire/tests/routing_corpus.py) to find its groups and effective profile settings.
## Automatic nine-net Terminal-Bench routing
## Complex-routing example 1
Use `terminal-bench-point-terminals` to test heading inference and ordered tracks through shared openings. Use `terminal-bench` to test automatic routing with eastbound arrival at every target. The [nine-net example figures](../examples/advanced.md#nine-net-terminal-bench-board) show how that requirement changes the route to the target near the top edge.
Select `complex-routing-example-1` to test eastbound arrival at every target. Select `complex-routing-example-1-point-terminals` to test heading inference and ordered tracks through shared openings. Compare the final approaches in the [example figures](../examples/advanced.md#complex-routing-example-1).
To run the bundle planner from point terminals and export its verified waypoints, use the following command.
```sh
python -m scripts.route_terminal_bench --output /tmp/inire-terminal-bench.json
python -m scripts.route_complex_routing_example --output /tmp/inire-complex-routing-example-1.json
```
The export should report nine verified routes. The upstream input is board 1 in the [pinned layout specification](https://raw.githubusercontent.com/harbor-framework/terminal-bench/249d125b59c0a5352d9e132195cfead6d81446be/tasks/photonic-waveguide-routing/environment/layout_spec.json). The unseeded export passed the pinned checker's cost and geometry requirements.
The export should report nine verified routes. The unseeded export passed the original checker's cost and geometry requirements. For the board's origin and the path from input to verified geometry, see the [illustrated walkthrough](complex-routing-example-1.md).
To verify a known layout or compare lane assignments, pass `--reference-lane-plan` or `--single-bottom-track` to replay the [authored lane plans](../inire/tests/terminal_bench_lane_plan.py). Use the unseeded command above for planner coverage and timing.
To replay a known layout, pass `--reference-lane-plan` for the shared bottom passage or `--single-bottom-track` for the one-track version. Use the unseeded command above for planner coverage and timing.
## Preplaced crossings