Fix core geometry snapping, A* target lookahead, and test configurations
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
BIN
examples/07_iteration_00.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
examples/07_iteration_01.png
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
examples/07_iteration_02.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_03.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_04.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_05.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_06.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_07.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_08.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_09.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_10.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_11.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_12.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_13.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_14.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_15.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_16.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_17.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_18.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_19.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_20.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_21.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_22.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_23.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_24.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_25.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_26.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_27.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_28.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_29.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_30.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_31.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_32.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_33.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_34.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_35.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_36.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_37.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_38.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_39.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_40.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_41.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_42.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_43.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_44.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_45.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_46.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_47.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_48.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
examples/07_iteration_49.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
|
Before Width: | Height: | Size: 340 KiB After Width: | Height: | Size: 339 KiB |
|
|
@ -27,10 +27,10 @@ def main() -> None:
|
|||
danger_map = DangerMap(bounds=bounds)
|
||||
danger_map.precompute(obstacles)
|
||||
|
||||
evaluator = CostEvaluator(engine, danger_map, greedy_h_weight=1.5)
|
||||
evaluator = CostEvaluator(engine, danger_map, greedy_h_weight=1.5, unit_length_cost=0.5, bend_penalty=100.0, sbend_penalty=200.0, congestion_penalty=100.0)
|
||||
|
||||
router = AStarRouter(evaluator, node_limit=10000, snap_size=10.0)
|
||||
pf = PathFinder(router, evaluator, max_iterations=20, base_congestion_penalty=500.0)
|
||||
router = AStarRouter(evaluator, node_limit=1000000, snap_size=5.0)
|
||||
pf = PathFinder(router, evaluator, max_iterations=10, base_congestion_penalty=100.0)
|
||||
|
||||
# 2. Define Netlist
|
||||
netlist = {}
|
||||
|
|
@ -51,6 +51,8 @@ def main() -> None:
|
|||
|
||||
def iteration_callback(idx, current_results):
|
||||
print(f" Iteration {idx} finished. Successes: {sum(1 for r in current_results.values() if r.is_valid)}/{len(netlist)}")
|
||||
print(pf.router.get_metrics_summary())
|
||||
pf.router.reset_metrics()
|
||||
# fig, ax = plot_routing_results(current_results, obstacles, bounds, netlist=netlist)
|
||||
# plot_danger_map(danger_map, ax=ax)
|
||||
# fig.savefig(f"examples/07_iteration_{idx:02d}.png")
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 78 KiB |