Ant Colony
Ant Colony
Ant Colony
Optimization
Gireeshkumar (PGP/21/204)
Prabhumathi M (PGP/21/217)
Sai Shyam T M (PGP/21/230)
Vibhore Sharma (PGP/21/243)
Ants choose the
path which has
Introduction highest amount
of pheromone.
Originated
from the
study of ant Pheromones released by ants
colonies. while walking from nest to
destination (food) help other
ants to follow the same path.
Marco Dorigo (Italy)
was the first one to
publish ACO in 1992.
Ants produce a chemical
named as Pheromones
ACO is a meta- which is used to
heuristic and communicate among
probabilistic them.
technique.
Each ant decides on whether to take a
particular path based on probability
Where to go? given by the probability computing
equation.
150
180
??
Natural Behavior of Ants
Choosing shortest path
Probability computation
Formula for ACO:
𝜏 𝑖 , 𝑗 ← (1−𝜌)𝜏 𝑖, 𝑗+∑𝑚 𝑘
𝑘=1 ∆𝜏 𝑖 , 𝑗
𝜏 𝑖, 𝑗=(1-𝜌)𝜏 𝑖 , 𝑗 + ∆𝜏 𝑖, 𝑗best
Where,
𝐿𝑏𝑒𝑠𝑡 can be set to the length of the best tour found in the current iteration or the best solution found
since the start of the algorithm.
D E
B
ij (t ) ij
if k allowed k
How does the ant choose k
pij t ij (t ) ij
node? kallowedk
0 otherwise
ηAj Initially the node is at node “A” and the
PAj = η
AB +ηAC + ηAD +ηAE+ηAF possible paths to cover are AB, AC, AD,
1
150
AE,AF
PAB = 1 1 1 1 1 = 0.1875
+ + + +
150 100 120 180 200 Apply the probability formula with α=β=1
1
PAC = 100
= 0.2812 ηij is calculated by the formulae ηij = 1/Dij,
1 1 1 1 1
+ + + +
100 150 120 180 200 where Dij is the distance between nodes i
1 and j.
120
PAD = 1 1 1 1 1 = 0.2343
+ + + +
120 100 150 180 200 DAB =150; DAC = 100; DAD=120; DAE =180; DAF
1 =200
180
PAE = 1 1 1 1 1 = 0.1562
+ + + +
180 100 120 150 200
Therefore,
1
200
ηAB = 1/150; ηAC = 1/100 ; ηAD = 1/120;
PAF = 1 1 1 1 1 = 0.1456
+ + + +
180 100 120 150 200
ηAE = 1/180; ηAF = 1/200
STEP – 1
3
1
6
C
A
2 F
5
B 4
E
D
STEP – 2
6
2
3
F-C
B-A
1 C-F
4
A-B 5
D-E
E-D
STEP – 3
2
6
B-A-C 4
F-C-A
5
D-E-F
3
E-D-B 1
A-B-D C-F-E
STEP – 4
4
5
2
D-E-F-C
E-D-B-A
6 B-A-C-F
1
F-C-A-B 3
C-F-E-D A-B-D-E
STEP – 5
5
4
E-D-B-A-C 1
D-E-F-C-A
3 A-B-D-E-F
C-F-E-D-B 6
F-C-A-B-D B-A-C-F-E
STEP – 6
1
3
5
A-B-D-E-F-C
C-F-E-D-B-A
4
E-D-B-A-C-F
6
D-E-F-C-A-B 2
F-C-A-B-D-E
B-A-C-F-E-D
Practical applications
Google Maps
Tourist attractions have suffered heavy traffic problems during vacations or holidays
ACO route planning model was used in order to establish a dynamic planning system that can
instantaneously provide optimal route information
Google Maps used ACO to assist in tailoring travel routes for each visitor
The results show that the mean total desired value of improved ACO algorithm is 25.53% higher;
the average travel time is reduced by 34.32%
Disadvantages