fixed timing and optimizer speed
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m49s
Build and release APK / Build APK (pull_request) Successful in 5m40s

This commit is contained in:
2024-09-10 16:50:12 +02:00
parent 20f20da9c5
commit 3475990e5f
5 changed files with 11 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ class Optimizer:
for j, spot2 in enumerate(landmarks) :
t = get_time(spot1.location, spot2.location) + spot1.duration
dist_table[j] = t
closest = sorted(dist_table)[:22]
closest = sorted(dist_table)[:20]
for i, dist in enumerate(dist_table) :
if dist not in closest :
dist_table[i] = 32700