Preserve probe budgets for alternate bend proxies
This commit is contained in:
parent
07a2c0e167
commit
8fdb42122e
1 changed files with 14 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue