Skip to content

Commit 9876862

Browse files
committed
Update model.py
1 parent fe8acfd commit 9876862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/aco_tsp/aco_tsp/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def step(self):
149149
new_city = self.decide_next_city()
150150
self.move_to(new_city)
151151

152-
self.tsp_solution = self._cities_visited.copy()
152+
self.tsp_solution = [entry.coordinate for entry in self._cities_visited]
153153
self.tsp_distance = self._traveled_distance
154154
self._cities_visited = []
155155
self._traveled_distance = 0

0 commit comments

Comments
 (0)