Preserve probe budgets for alternate bend proxies

This commit is contained in:
Jan Petykiewicz 2026-11-26 20:21:22 -08:00
commit 8fdb42122e

View file

@ -505,10 +505,15 @@ class _AutomaticRun:
try_construction_early = self.iteration_callback is None and 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
proxy, _ = resolve_bend_geometry(options.search)
# Clipped proxies can find cheaper routes in later probe iterations than in the wider retry.
if proxy == "arc":
probe_iterations = min(_NEAR_PORT_ITERATION_LIMIT, probe_iterations)
probe_options = replace(
options,
search=replace(options.search, node_limit=min(_NEAR_PORT_NODE_LIMIT, options.search.node_limit)),
congestion=replace(options.congestion, max_iterations=min(_NEAR_PORT_ITERATION_LIMIT, options.congestion.max_iterations)),
congestion=replace(options.congestion, max_iterations=probe_iterations),
)
probe = self._direct(probe_options, "direct-probe-near-port")
trials.extend(probe)