added duration
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m30s

This commit is contained in:
2024-08-12 16:07:53 +02:00
parent da921171e9
commit a1fcc8d23b
2 changed files with 12 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ class Optimizer:
dist_table = [0]*len(landmarks)
c.append(-spot1.attractiveness)
for j, spot2 in enumerate(landmarks) :
t = get_time(spot1.location, spot2.location)
t = get_time(spot1.location, spot2.location) + spot1.duration
dist_table[j] = t
closest = sorted(dist_table)[:22]
for i, dist in enumerate(dist_table) :