--promote-failures: reroute with the connections that failed moved first

Each round routes every connection that has failed so far ahead of the
rest, which keep their order. The promoted set only grows, so two groups
cannot take turns failing; the best round is kept.
This commit is contained in:
2026-09-27 22:34:06 -06:00
parent 0f5dacbd88
commit 01ca108831
7 changed files with 105 additions and 4 deletions
+2
View File
@@ -95,6 +95,7 @@ def route_board_exact(
resolution: int = 1,
heuristic_weight: float = 1.0,
seed: int | None = None,
route_first: frozenset | None = None,
) -> ExactRouteResult:
"""Route ``board`` orthogonally and verify the result with exact geometry.
@@ -124,6 +125,7 @@ def route_board_exact(
resolution=resolution,
heuristic_weight=heuristic_weight,
seed=seed,
route_first=route_first,
)
edge = 0 if edge_clearance is None else edge_clearance
outline = board.outline