Simplify routing verification and isolate benchmark policies
This commit is contained in:
parent
2c260e5e95
commit
ec2768853e
1 changed files with 1874 additions and 1164 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue