Optimize late no-warm reroutes
This commit is contained in:
parent
2c3aa90544
commit
46e7e13059
1 changed files with 2086 additions and 307 deletions
|
|
@ -91,6 +91,7 @@ def _make_run_result(
|
|||
expanded_nodes=tuple(pathfinder.accumulated_expanded_nodes),
|
||||
conflict_trace=tuple(pathfinder.conflict_trace),
|
||||
frontier_trace=tuple(pathfinder.frontier_trace),
|
||||
pre_pair_frontier_trace=pathfinder.pre_pair_frontier_trace,
|
||||
iteration_trace=tuple(pathfinder.iteration_trace),
|
||||
)
|
||||
|
||||
|
|
@ -453,6 +454,7 @@ def _build_example_07_variant_stack(
|
|||
capture_conflict_trace: bool = False,
|
||||
capture_frontier_trace: bool = False,
|
||||
capture_iteration_trace: bool = False,
|
||||
capture_pre_pair_frontier_trace: bool = False,
|
||||
) -> tuple[CostEvaluator, AStarMetrics, PathFinder]:
|
||||
bounds = (0, 0, 1000, 1000)
|
||||
obstacles = [
|
||||
|
|
@ -496,6 +498,7 @@ def _build_example_07_variant_stack(
|
|||
"capture_conflict_trace": capture_conflict_trace,
|
||||
"capture_frontier_trace": capture_frontier_trace,
|
||||
"capture_iteration_trace": capture_iteration_trace,
|
||||
"capture_pre_pair_frontier_trace": capture_pre_pair_frontier_trace,
|
||||
"shuffle_nets": True,
|
||||
"seed": seed,
|
||||
"warm_start_enabled": warm_start_enabled,
|
||||
|
|
@ -512,6 +515,7 @@ def _run_example_07_variant(
|
|||
capture_conflict_trace: bool = False,
|
||||
capture_frontier_trace: bool = False,
|
||||
capture_iteration_trace: bool = False,
|
||||
capture_pre_pair_frontier_trace: bool = False,
|
||||
) -> RoutingRunResult:
|
||||
evaluator, metrics, pathfinder = _build_example_07_variant_stack(
|
||||
num_nets=num_nets,
|
||||
|
|
@ -520,6 +524,7 @@ def _run_example_07_variant(
|
|||
capture_conflict_trace=capture_conflict_trace,
|
||||
capture_frontier_trace=capture_frontier_trace,
|
||||
capture_iteration_trace=capture_iteration_trace,
|
||||
capture_pre_pair_frontier_trace=capture_pre_pair_frontier_trace,
|
||||
)
|
||||
|
||||
def iteration_callback(idx: int, current_results: dict[str, RoutingResult]) -> None:
|
||||
|
|
@ -560,6 +565,7 @@ def _trace_example_07_variant(
|
|||
capture_conflict_trace=True,
|
||||
capture_frontier_trace=True,
|
||||
capture_iteration_trace=True,
|
||||
capture_pre_pair_frontier_trace=True,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue