Skip to content

Commit

Permalink
fix random in atc
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 10, 2024
1 parent 6b8a540 commit eeba004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/aco_tsp/aco_tsp/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(
self.num_cities = tsp_graph.num_cities
self.all_cities = set(range(self.num_cities))
self.max_steps = max_steps
self.grid = Network(tsp_graph.g)
self.grid = Network(tsp_graph.g, random=self.random)

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

0 comments on commit eeba004

Please sign in to comment.