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
|
|
@ -46,8 +46,8 @@ def build_routing_stack(problem: RoutingProblem, options: RoutingOptions) -> Rou
|
|||
|
||||
danger_map = DangerMap(bounds=problem.bounds)
|
||||
refinement = options.refinement
|
||||
if options.objective.danger_weight or (
|
||||
refinement.enabled and refinement.objective is not None and refinement.objective.danger_weight
|
||||
if options.congestion.max_iterations > 0 and (
|
||||
options.objective.danger_weight or (refinement.enabled and refinement.objective is not None and refinement.objective.danger_weight)
|
||||
):
|
||||
danger_map.precompute(list(problem.static_obstacles))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue