french_version

This commit is contained in:
Rom168 2023-06-19 15:20:40 +02:00
parent bfd084d75f
commit 17275e5423

View File

@ -59,16 +59,16 @@ class AntColony:
self.pheromones = [[(1 - self.evaporation) * p for p in row] for row in self.pheromones]
return [self.cities[i] for i in best_ant]
nb_ville = 50
nb_ville = 2000
max_coords = 1000
nb_truck = 2
max_time = 3
nb_truck = 3
max_time = 50
nb_ants = 10
max_time_per_cluster = max_time / nb_truck
start_time_generate = time.time()
cities = generate_cities(nb_ville, max_coords)
cities = generate_cities(nb_ville, max_coords)
cities[0] = [max_coords/2, max_coords/2]
stop_time_generate = time.time()