We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8acfd commit 9876862Copy full SHA for 9876862
examples/aco_tsp/aco_tsp/model.py
@@ -149,7 +149,7 @@ def step(self):
149
new_city = self.decide_next_city()
150
self.move_to(new_city)
151
152
- self.tsp_solution = self._cities_visited.copy()
+ self.tsp_solution = [entry.coordinate for entry in self._cities_visited]
153
self.tsp_distance = self._traveled_distance
154
self._cities_visited = []
155
self._traveled_distance = 0
0 commit comments