From 2f24a491b2b8c2eb281688fd361e0379dab38c40 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 24 Jul 2024 22:02:37 +0200 Subject: [PATCH] Changed optimizer values. --- astar/Astar.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/astar/Astar.cs b/astar/Astar.cs index be6c23c..94627a9 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -6,11 +6,12 @@ using OSM_Regions; namespace astar { - public class Astar(ValueTuple? optimizingWeights = null, int? explorationDistance = null) + public class Astar(ValueTuple? optimizingWeights = null, int? explorationDistance = null, int? explorationMultiplier = null) { private static readonly ValueTuple DefaultPriorityWeights = new(1, 1.4f, 0, 0); - private readonly ValueTuple OptimizingWeights = optimizingWeights ?? new(1, 0, -0.2f, 0); + private readonly ValueTuple OptimizingWeights = optimizingWeights ?? new(0, 0.07f, 0, 0); private int ExplorationDistanceFromRoute = explorationDistance ?? 200; + private int ExplorationMultiplier = explorationMultiplier ?? 65; public Route FindPath(float startLat, float startLon, float endLat, float endLon, float regionSize, bool car = true, PathMeasure pathing = PathMeasure.Distance, float additionalExploration = 3, string? importFolderPath = null, ILogger? logger = null) {