From eeba00454ad6b7fb6b0b242b6b047cb8809863f0 Mon Sep 17 00:00:00 2001 From: Jan Kwakkel Date: Tue, 10 Sep 2024 18:01:36 +0200 Subject: [PATCH] fix random in atc --- examples/aco_tsp/aco_tsp/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/aco_tsp/aco_tsp/model.py b/examples/aco_tsp/aco_tsp/model.py index e1141b9e..d000081e 100644 --- a/examples/aco_tsp/aco_tsp/model.py +++ b/examples/aco_tsp/aco_tsp/model.py @@ -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)