Ant Colony–Based Simulation 117
TABLE 5.2: Comparison between ACO and metaheuristics.
TSP ACO GA EP SA Optimal
Oliver 30 420 421 420 424 420
[830] [3200] [40,000] [24,617]
Eil 50 425 428 426 443 425
[1,830] [25,000] [1 00,000] [68,512]
Eil 75 535 545 542 580 535
[3,480] [80,000] [3 25,000] [173,250]
KroA 100 21,282 21,761 N/A N/A 21,2 82
[4,820] [103,00] [N/A] [N/A]
a heuristic for searching for a s horter path. The ACO can thereby include an
appropria te amount of knowledge unique to the problem.
The pheromone table is updated by the following equations:
Q(k) = the reciprocal of the path tha t ant k found (5.2)
∆τ
ij
(t) =
X
k∈A
ij
Q(k) (5.3)
τ
ij
(t + 1) = (1 − ρ) · τ
ij
(t) + ∆τ
ij
(t) (5.4)
The amount of pheromone added to each path after one iteration is inversely
proportional to the length of the paths that the ants found (eq. (5.2)). The re-
sults for all ants that moved through a path are reflected in the path (eq. (5.3)).
Here, A
ij
is the s e t of all ants that moved on a path from city i to city j. Neg-
ative feedback to avoid local solutions is given as an evaporation coefficient
(eq. (5 .4)), where the amount of pheromone in the paths, or informa tion from
the past, is reduced by a fixed factor (ρ).
The ACO is an effective method to solve the traveling salesman problem
(TSP) compared to other search strategies. Table 5.2 shows the optimized
values for four benchmark problems and various minima found using other
methods (smaller is better, obviously) [31]. T he number s in brackets indica te
the number of candidates investigated. The ACO is more suitable for this
problem compared to methods such as a genetic algorithm (GA, Section 2.2),
simulated annealing (SA), and evolutionary programming (EP). However, it
is inferior to the Lee–Kernighan method (the current TSP champion code).
The characteris tic that specialized methods per form better in static problems
is shared by many metaheuristics (high-level strategies which guide a n under-
lying heuristic to increas e its performance). Complicated problems, such as
TSPs where the distances between cities are asymmetric o r where the cities
change dynamically, do not have established programs and the ACO is con-
sidered to be one of the most promising methods.
The length and pheromone accumulation of paths betwee n cities are stored