Verify route continuity and simplify automatic search setup
This commit is contained in:
parent
c200d0f7c1
commit
def1e4ea1d
1 changed files with 489 additions and 103 deletions
|
|
@ -27,6 +27,7 @@ from inire.router._perimeter import (
|
|||
residual_dogleg_candidates,
|
||||
terminal_link_seed,
|
||||
)
|
||||
from inire.router._route_traces import complete_final_conflict_trace
|
||||
from inire.router._routing_policy import (
|
||||
LockPlan,
|
||||
_best_trial,
|
||||
|
|
@ -431,7 +432,6 @@ class _AutomaticRun:
|
|||
len(problem.nets) <= 2
|
||||
or problem.initial_paths
|
||||
or options.search.node_limit <= _NEAR_PORT_NODE_LIMIT
|
||||
or self.iteration_callback is not None
|
||||
or options.congestion.shuffle_nets
|
||||
):
|
||||
return None
|
||||
|
|
@ -484,7 +484,7 @@ class _AutomaticRun:
|
|||
if len(_best_trial(trials).valid_costs) >= target:
|
||||
return True
|
||||
|
||||
try_construction_early = self.iteration_callback is None and not options.congestion.shuffle_nets
|
||||
try_construction_early = not options.congestion.shuffle_nets
|
||||
if try_construction_early and self._try_column_jogs(options, trials, target):
|
||||
return True
|
||||
probe_iterations = options.congestion.max_iterations
|
||||
|
|
@ -637,7 +637,7 @@ class _AutomaticRun:
|
|||
timings=tuple(self.timings),
|
||||
duration_s=perf_counter() - started,
|
||||
)
|
||||
return replace(best.run, metrics=metrics, automatic=report)
|
||||
return replace(complete_final_conflict_trace(best.run), metrics=metrics, automatic=report)
|
||||
|
||||
|
||||
def route_automatic(
|
||||
|
|
|
|||
Loading…
Reference in a new issue