Skip to content

Commit eeba004

Browse files
committed
fix random in atc
1 parent 6b8a540 commit eeba004

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
@@ -182,7 +182,7 @@ def __init__(
182182
self.num_cities = tsp_graph.num_cities
183183
self.all_cities = set(range(self.num_cities))
184184
self.max_steps = max_steps
185-
self.grid = Network(tsp_graph.g)
185+
self.grid = Network(tsp_graph.g, random=self.random)
186186

187187
for _ in range(self.num_agents):
188188
agent = AntTSP(model=self, alpha=ant_alpha, beta=ant_beta)

0 commit comments

Comments
 (0)