From ff9df68f3120ce7089dffb4ac00fe07854124a91 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Sat, 16 Nov 2024 15:21:34 -0500 Subject: less bouncing --- dashboard_website/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard_website') diff --git a/dashboard_website/router.py b/dashboard_website/router.py index 731362a..f720b4e 100644 --- a/dashboard_website/router.py +++ b/dashboard_website/router.py @@ -272,7 +272,7 @@ def __minimize_route_time_diff( # If the difference is greater than the time difference, move a coordinate from the longest route to the shortest route if time_difference > time_diff: # Move a coordinate from the longest route to the shortest route - for _ in range(max(1,int(time_difference/0.12))): # roughly estimate how many points must be moved to equalize + for _ in range(max(1,int(time_difference/0.25))): # roughly estimate how many points must be moved to equalize closest_coordinate = __find_closest_coordinates( routes[active_indices[sorted_indices[-1]]], __mean_center(routes[sorted_indices[0]]) )[0] -- cgit v1.2.3