added duration
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m30s
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m30s
This commit is contained in:
@@ -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) :
|
||||
|
Reference in New Issue
Block a user