Simplify routing verification and isolate benchmark policies

This commit is contained in:
Jan Petykiewicz 2026-11-26 21:55:34 -08:00
commit ec2768853e

View file

@ -391,7 +391,7 @@ class _AutomaticRun:
policy = "incumbent-residual"
locks = LockPlan(retained)
run, stage = _route_residual(problem, options, "direct-seed", locks, run_route=partial(self._run, policy=policy))
run, stage = _route_residual(problem, options, locks, residual_mode="seed", run_route=partial(self._run, policy=policy))
stage = replace(stage, kind=policy, policy=policy, retry_reason="Residual terminals remain connected with the incumbents locked")
trial = self._trial(run, stage)
if len(trial.valid_costs) == len(problem.nets):
@ -580,7 +580,7 @@ class _AutomaticRun:
return None
retry = replace(options, congestion=replace(options.congestion, max_iterations=min(3, options.congestion.max_iterations)))
run, stage = _route_residual(
self.problem, retry, "direct-seed", locks, run_route=partial(self._run, policy=policy, corridors=corridors)
self.problem, retry, locks, residual_mode="seed", run_route=partial(self._run, policy=policy, corridors=corridors)
)
stage = replace(
stage,