Skip to content

Commit 52662b1

Browse files
authored
Update comment for pheromone matrix initialization
1 parent b7e916f commit 52662b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphs/ant_colony_optimization_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main(
6666
... pheromone_evaporation=0, alpha=1.0, beta=5.0, q=10)
6767
([0, 1, 0], 5.656854249492381)
6868
"""
69-
# Initialize the pheromone matrix.
69+
# Initialize the pheromone matrix
7070
cities_num = len(cities)
7171
pheromone = [[1.0] * cities_num] * cities_num
7272

0 commit comments

Comments
 (0)