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 6b8a540 commit eeba004Copy full SHA for eeba004
examples/aco_tsp/aco_tsp/model.py
@@ -182,7 +182,7 @@ def __init__(
182
self.num_cities = tsp_graph.num_cities
183
self.all_cities = set(range(self.num_cities))
184
self.max_steps = max_steps
185
- self.grid = Network(tsp_graph.g)
+ self.grid = Network(tsp_graph.g, random=self.random)
186
187
for _ in range(self.num_agents):
188
agent = AntTSP(model=self, alpha=ant_alpha, beta=ant_beta)
0 commit comments