Ant Colony
The Ant Colony algorithm is based on the real life example of ants. Ants find the shortest path from the nest to a food source by putting "pheromone" on the ground. When they have to pick a direction, they will now choose the direction with higher probability paths that are marked by stronger pheromone concentrations. A few of the ants will randomly pick other directions, while most of them will follow the pheromone markers.
Algorithm
InitPheromoneValues to a low value
for every ant
constructSolution based on the previously deposited pheromone trails. Most ants follow the existing trail, while some ants will follow a new trail. This is computated by a state transition rule.
Apply this pheromone trail on the components of their chosen solution
The total pheromone trail evaporates a bit based on the evaporation rate
Last updated
Was this helpful?