SlideShare a Scribd company logo
Ant colony optimization algorithm
PRESENTED BY:
BHARAT SHARMA
13001502002
MTIC(2nd year)
Ant Colony Optimization (ACO)
Overview
“Ant Colony Optimization (ACO) studies
artificial systems that take inspiration
from the behavior of real ant colonies
and which are used to solve discrete
optimization problems.”
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
A C O
• Ant Colony Optimization is another family of optimization algorithms
inspired by pheromone-based strategies of ant foraging.
• ACO algorithms were originally conceived to find the shortest route in
travelling salesman problems.
• In ACO several ants travel across the edges that connect the nodes of
the graph while depositing virtual pheromones.
• PHEROMONES : a chemical substance secreted externally by some
animals(especially insects) that influence the physiology or behavior
of other animals(insects) of same species.
Ant Colony Optimization (ACO)
A C O
• Ants that travel on the shortest path will be able to make more return
trips and deposit more pheromones in a given amount of time.
• Consequently, that path will attract more ants in a positive feedback
loop.
• ACO assumes that virtual pheromones evaporates ,thus reducing the
probability that long paths are selected.
• Pheromone evaporation has also the advantage of avoiding the
convergence to a locally optimal solution. If there were no
evaporation at all, the paths chosen by the first ants would tend to be
excessively attractive to the following ones. In that case, the
exploration of the solution space would be constrained.
Ant Colony Optimization (ACO)
Ant Colony Optimization
The Ant System (AS)
Ant Colony Optimization (ACO)
• Almost blind.
• Incapable of achieving complex tasks alone.
• Rely on the phenomena of swarm intelligence for survival.
• Capable of establishing shortest-route paths from their colony to feeding sources
and back.
• Use stigmergic communication via pheromone trails.
Ants….
Ant Colony Optimization (ACO)
• Follow existing pheromone trails with high probability.
• What emerges is a form of autocatalytic behavior: the more ants follow a trail,
the more attractive that trail becomes for being followed.
• The process is thus characterized by a positive feedback loop, where the
probability of a discrete path choice increases with the number of times the
same path was chosen before.
Ants ,contd.
Ant Colony Optimization (ACO)
Ants ,contd.
It is well known that the primary means for ants to form and maintain the line is a
pheromone trail. Ants deposit a certain amount of pheromone while walking, and each
ant probabilistically prefers to follow a direction ,rich in pheromone.
ℙ 𝐶 < ℙ 𝐵 < ℙ 𝐴
ℙ(𝐴)
ℙ(𝐵)
ℙ(𝐶)
Ant Colony Optimization (ACO)
E
D
CH
B
A
(b)
30 ants
30 ants
15 ants
15 ants
15 ants
15 ants
t = 0
d = 0.5
d = 0.5
d = 1
d = 1
E
D
CH
B
A
(a)
E
D
CH
B
A
(c)
30 ants
30 ants
20 ants
20 ants
10 ants
10 ants
t = 1
τ = 30
τ = 30
τ = 15
τ = 15
Initial state:
no ants
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path around an obstacle
This elementary behavior of real ants can be used to explain how they can find the
shortest path that reconnects a broken line after the sudden appearance of an
unexpected obstacle has interrupted the initial path.
Ants are moving on a
straight line that connects
a food source to their nest.
Let us consider the following scenario:
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path around an obstacle
This elementary behavior of real ants can be used to explain how they can find the
shortest path that reconnects a broken line after the sudden appearance of an
unexpected obstacle has interrupted the initial path.
An obstacle appears on
the path.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path around an obstacle
This elementary behavior of real ants can be used to explain how they can find the
shortest path that reconnects a broken line after the sudden appearance of an
unexpected obstacle has interrupted the initial path.
Those ants which are just in front of the obstacle
cannot continue to follow the pheromone trail
and therefore they have to choose between
turning right or left. In this situation we can
expect half the ants to choose to turn right and
the other half to turn left.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path around an obstacle
This elementary behavior of real ants can be used to explain how they can find the
shortest path that reconnects a broken line after the sudden appearance of an
unexpected obstacle has interrupted the initial path.
Those ants which choose, by chance, the shorter
path around the obstacle will more rapidly
reconstitute the interrupted pheromone trail
compared to those which choose the longer
path. Thus, the shorter path will receive a
greater amount of pheromone per time unit and
in turn a larger number of ants will choose the
shorter path.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path around an obstacle
This elementary behavior of real ants can be used to explain how they can find the
shortest path that reconnects a broken line after the sudden appearance of an
unexpected obstacle has interrupted the initial path.
Shortest path is being obtained.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Ants are able, without using any spatial Information, to identify a sudden appearance of
a food source around their nest, and to find the shortest available path to it.
Let us describe the algorithm:
A small amount of ants travel
randomly around the nest.
N
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Ants are able, without using any spatial Information, to identify a sudden appearance of
a food source around their nest, and to find the shortest available path to it.
One of the ants find food source.
S
N
Pheromone trails
Shortest path from the nest to the food source
When ant finds food, it returns to
the nest while laying down
pheromones trail.
S
N
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
When other ants find a pheromone trail,
they are likely not to keep travelling at
random, but to instead follow the trail.
S
N
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
If an ant eventually find food by following
a pheromone trail, it returning to the nest
while reinforcing the trail with more
pheromones.
S
N
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Due to their stochastic behavior,
some ants are not following the
pheromone trails, and thus uncover
more possible paths.
S
N
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Over time, however, the pheromones
trails starts to evaporate, thus
reducing its attractive strength.
S
N
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
Ant Colony Optimization (ACO)
Pheromone trails
Shortest path from the nest to the food source
Shortest path is being obtained.
S
N
Ants are able, without using any spatial Information, to identify a sudden
appearance of a food source around their nest, and to find the shortest
available path to it.
Ant Colony Optimization (ACO)
• Let us consider the algorithm more formally. The number of ants M is usually equal
to the number of nodes N in the graph.
• A small amount of virtual pheromones is deposited on all edges of the beginning of
the search.
• The probability 𝑝 𝑖𝑗
𝑘
that ant k chooses the edge from node i to node j.
𝑝 𝑖𝑗
𝑘
=
𝜏𝑖𝑗
𝑎
𝜂𝑖𝑗
𝑏
ℎ ℰ 𝐽 𝑘
𝐻
𝜏𝑖ℎ
𝑎
𝜂𝑖ℎ
𝑏
Where 𝜏𝑖𝑗 = amount of virtual pheromones on that edge .
𝜂𝑖𝑗 = visibility of the node computed as the inverse of the edge length
1
𝑙 𝑖𝑗
.
constant a & b weight the importance of the two factors.
Formal ANT Algorithm
Ant Colony Optimization (ACO)
• If a = 0, ants choose solely on the basis of shortest distance .
• Conversely if b = 0, ants choose solely on the basis of the pheromones amount.
• The divider in the fraction sums up the pheromones and visibility values for the
edges H that are available at the node where the ants sits as long as they belong to
the set 𝐽 𝑘 of the nodes that the ants k has not yet visited .
• as soon as the ant visits a node , this is deleted from the list 𝐽 𝑘 .
• Once all the ants have completed a tour of the graph, each ant k retraces its own
path and deposits an amount of pheromones ∆τ𝑖𝑗
𝑘
on the travelled edges according
to
• where 𝐿 𝑘
= total length of the path found by ant k.
• Q is a constant , which is set to be the length of the shortest path estimated with a
simple heuristic method.
∆τ𝑖𝑗
𝑘
=
𝑄
𝐿 𝑘
Formal ANT Algorithm , contd.
Ant Colony Optimization (ACO)
• The amount of pheromones on each edge after all M ants have retraced their
own paths is equal to
• Before starting all ants again in a search for the shortest path, pheromone levels
evaporate according to
• Where 0 ≤ ρ ≥ 1 is the coefficient of pheromone evaporation.
• This concludes one iteration of the algorithm. This process is repeated for several
Hundred iterations until satisfactory short path has been found.
∆ 𝑇𝑖𝑗= 𝑘
𝑀
∆τ𝑖𝑗
𝑘
τ𝑖𝑗
𝑡+1
= (1 - ρ) τ𝑖𝑗
𝑡
∆ 𝑇𝑖𝑗
Formal ANT Algorithm , contd.
Ant Colony Optimization (ACO)
• Positive Feedback accounts for rapid discovery of good solutions.
• Virtual ants discover and maintain several short paths in addition to the best
one because of the probabilistic edge choice.
• Distributed computation avoids premature convergence.
• The greedy heuristic helps find acceptable solution in the early solution in the
early stages of the search process.
• The collective interaction of a population of agents.
Some inherent advantages
Ant Colony Optimization (ACO)
• Slower convergence than other Heuristics.
• Performed poorly for TSP problems larger than 75 cities.
• No centralized processor to guide the AS towards good solutions
Disadvantages in Ant Systems
Ant Colony Optimization (ACO)
• ACO is a recently proposed meta-heuristic approach for solving hard
combinatorial optimization problems.
• Artificial ants implement a randomized construction heuristic which makes
probabilistic decisions.
• The cumulated search experience is taken into account by the adaptation of
the pheromone trail.
• ACO Shows great performance with the “ill-structured” problems like network
routing.
• In ACO Local search is extremely important to obtain good results.
Conclusions
Ant Colony Optimization (ACO)
Questions, Comments?
Thank You

More Related Content

What's hot

Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
قصي نسور
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationAbdul Rahman
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Suman Chatterjee
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
ITER
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
Mohamed Talaat
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Medhini Narasimhan
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
UnnitaDas
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
Omid Edriss
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
Swetanshmani Shrivastava
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
kamalikanath89
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Soumen Santra
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
Ahmed Fouad Ali
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Joy Dutta
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
Md.Al-imran Roton
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
Ahmed Fouad Ali
 

What's hot (20)

Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
 
Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Metaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical AnalysisMetaheuristic Algorithms: A Critical Analysis
Metaheuristic Algorithms: A Critical Analysis
 
Bat algorithm and applications
Bat algorithm and applicationsBat algorithm and applications
Bat algorithm and applications
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
 

Viewers also liked

Karınca kolonisi algoritması
Karınca kolonisi algoritmasıKarınca kolonisi algoritması
Karınca kolonisi algoritması
Orhan ERIPEK
 
Yapay arı kolonisi algoritması
Yapay arı kolonisi algoritmasıYapay arı kolonisi algoritması
Yapay arı kolonisi algoritması
Orhan ERIPEK
 
A Swarm of Ads
A Swarm of AdsA Swarm of Ads
A Swarm of Ads
dalewong108
 
The honey bee
The honey bee The honey bee
The honey bee
zoyeah
 
Surah An-Naml-The miracle in the ant!!
Surah An-Naml-The miracle in the ant!!Surah An-Naml-The miracle in the ant!!
Surah An-Naml-The miracle in the ant!!zoyeah
 
Algorithms in nature
Algorithms in natureAlgorithms in nature
Algorithms in nature
Sagie Davidovich
 
acoa
acoaacoa
Ant Colony Algorithm
Ant Colony AlgorithmAnt Colony Algorithm
Ant Colony Algorithm
guest4c60e4
 
Various Metaheuristic algorithms For Securing VANET
Various Metaheuristic algorithms For Securing VANETVarious Metaheuristic algorithms For Securing VANET
Various Metaheuristic algorithms For Securing VANET
Kishan Patel
 
nature inspired algorithms
nature inspired algorithmsnature inspired algorithms
nature inspired algorithms
Gaurav Goel
 
Aco 03-04-2013
Aco 03-04-2013Aco 03-04-2013
Aco 03-04-2013
Ahmad Khan
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
jayatra
 
Bee algorithm
Bee algorithmBee algorithm
Bee algorithm
Njoud Omar
 

Viewers also liked (14)

Karınca kolonisi algoritması
Karınca kolonisi algoritmasıKarınca kolonisi algoritması
Karınca kolonisi algoritması
 
Yapay arı kolonisi algoritması
Yapay arı kolonisi algoritmasıYapay arı kolonisi algoritması
Yapay arı kolonisi algoritması
 
[Untitled] (1)
[Untitled] (1)[Untitled] (1)
[Untitled] (1)
 
A Swarm of Ads
A Swarm of AdsA Swarm of Ads
A Swarm of Ads
 
The honey bee
The honey bee The honey bee
The honey bee
 
Surah An-Naml-The miracle in the ant!!
Surah An-Naml-The miracle in the ant!!Surah An-Naml-The miracle in the ant!!
Surah An-Naml-The miracle in the ant!!
 
Algorithms in nature
Algorithms in natureAlgorithms in nature
Algorithms in nature
 
acoa
acoaacoa
acoa
 
Ant Colony Algorithm
Ant Colony AlgorithmAnt Colony Algorithm
Ant Colony Algorithm
 
Various Metaheuristic algorithms For Securing VANET
Various Metaheuristic algorithms For Securing VANETVarious Metaheuristic algorithms For Securing VANET
Various Metaheuristic algorithms For Securing VANET
 
nature inspired algorithms
nature inspired algorithmsnature inspired algorithms
nature inspired algorithms
 
Aco 03-04-2013
Aco 03-04-2013Aco 03-04-2013
Aco 03-04-2013
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
 
Bee algorithm
Bee algorithmBee algorithm
Bee algorithm
 

Similar to ant colony algorithm

Swarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdfSwarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdf
ahmedsalim244821
 
Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_OptimizationNeha Reddy
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
kamalikanath89
 
Neural nw ant colony algorithm
Neural nw   ant colony algorithmNeural nw   ant colony algorithm
Neural nw ant colony algorithm
Eng. Dr. Dennis N. Mwighusa
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
vijayalakshmi257551
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
PrasadNagelli
 
Ants and ants based routing
Ants and ants based routingAnts and ants based routing
Ants and ants based routingVarun Chopra
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
Muhammad Haroon
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
Muhammad Haroon
 
Swarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony OptimizationSwarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony Optimization
IJMER
 
ANT ALGORITME.pptx
ANT ALGORITME.pptxANT ALGORITME.pptx
ANT ALGORITME.pptx
Riki378702
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
Nitesh Bichwani
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
nrusinhapadhi
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
Wajahat Hussain
 
Meta Heuristics Optimization and Nature Inspired.ppt
Meta Heuristics Optimization and Nature Inspired.pptMeta Heuristics Optimization and Nature Inspired.ppt
Meta Heuristics Optimization and Nature Inspired.ppt
SubramanianManivel1
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.ppt
DeveshKhandare
 
Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07
Borseshweta
 
How ants find shortest path
How ants find shortest pathHow ants find shortest path
How ants find shortest path
Mr. Suresh R. Jambagi
 

Similar to ant colony algorithm (20)

Swarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdfSwarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdf
 
Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_Optimization
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
Neural nw ant colony algorithm
Neural nw   ant colony algorithmNeural nw   ant colony algorithm
Neural nw ant colony algorithm
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
Ants and ants based routing
Ants and ants based routingAnts and ants based routing
Ants and ants based routing
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
 
Swarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony OptimizationSwarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony Optimization
 
ANT ALGORITME.pptx
ANT ALGORITME.pptxANT ALGORITME.pptx
ANT ALGORITME.pptx
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
231semMish.ppt
231semMish.ppt231semMish.ppt
231semMish.ppt
 
231semMish (1).ppt
231semMish (1).ppt231semMish (1).ppt
231semMish (1).ppt
 
Meta Heuristics Optimization and Nature Inspired.ppt
Meta Heuristics Optimization and Nature Inspired.pptMeta Heuristics Optimization and Nature Inspired.ppt
Meta Heuristics Optimization and Nature Inspired.ppt
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.ppt
 
Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07
 
How ants find shortest path
How ants find shortest pathHow ants find shortest path
How ants find shortest path
 

Recently uploaded

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 

Recently uploaded (20)

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 

ant colony algorithm

  • 1. Ant colony optimization algorithm PRESENTED BY: BHARAT SHARMA 13001502002 MTIC(2nd year)
  • 2. Ant Colony Optimization (ACO) Overview “Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems.”
  • 4. Ant Colony Optimization (ACO) A C O • Ant Colony Optimization is another family of optimization algorithms inspired by pheromone-based strategies of ant foraging. • ACO algorithms were originally conceived to find the shortest route in travelling salesman problems. • In ACO several ants travel across the edges that connect the nodes of the graph while depositing virtual pheromones. • PHEROMONES : a chemical substance secreted externally by some animals(especially insects) that influence the physiology or behavior of other animals(insects) of same species.
  • 5. Ant Colony Optimization (ACO) A C O • Ants that travel on the shortest path will be able to make more return trips and deposit more pheromones in a given amount of time. • Consequently, that path will attract more ants in a positive feedback loop. • ACO assumes that virtual pheromones evaporates ,thus reducing the probability that long paths are selected. • Pheromone evaporation has also the advantage of avoiding the convergence to a locally optimal solution. If there were no evaporation at all, the paths chosen by the first ants would tend to be excessively attractive to the following ones. In that case, the exploration of the solution space would be constrained.
  • 6. Ant Colony Optimization (ACO) Ant Colony Optimization The Ant System (AS)
  • 7. Ant Colony Optimization (ACO) • Almost blind. • Incapable of achieving complex tasks alone. • Rely on the phenomena of swarm intelligence for survival. • Capable of establishing shortest-route paths from their colony to feeding sources and back. • Use stigmergic communication via pheromone trails. Ants….
  • 8. Ant Colony Optimization (ACO) • Follow existing pheromone trails with high probability. • What emerges is a form of autocatalytic behavior: the more ants follow a trail, the more attractive that trail becomes for being followed. • The process is thus characterized by a positive feedback loop, where the probability of a discrete path choice increases with the number of times the same path was chosen before. Ants ,contd.
  • 9. Ant Colony Optimization (ACO) Ants ,contd. It is well known that the primary means for ants to form and maintain the line is a pheromone trail. Ants deposit a certain amount of pheromone while walking, and each ant probabilistically prefers to follow a direction ,rich in pheromone. ℙ 𝐶 < ℙ 𝐵 < ℙ 𝐴 ℙ(𝐴) ℙ(𝐵) ℙ(𝐶)
  • 10. Ant Colony Optimization (ACO) E D CH B A (b) 30 ants 30 ants 15 ants 15 ants 15 ants 15 ants t = 0 d = 0.5 d = 0.5 d = 1 d = 1 E D CH B A (a) E D CH B A (c) 30 ants 30 ants 20 ants 20 ants 10 ants 10 ants t = 1 τ = 30 τ = 30 τ = 15 τ = 15 Initial state: no ants
  • 11. Ant Colony Optimization (ACO) Pheromone trails Shortest path around an obstacle This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. Ants are moving on a straight line that connects a food source to their nest. Let us consider the following scenario:
  • 12. Ant Colony Optimization (ACO) Pheromone trails Shortest path around an obstacle This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. An obstacle appears on the path.
  • 13. Ant Colony Optimization (ACO) Pheromone trails Shortest path around an obstacle This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. Those ants which are just in front of the obstacle cannot continue to follow the pheromone trail and therefore they have to choose between turning right or left. In this situation we can expect half the ants to choose to turn right and the other half to turn left.
  • 14. Ant Colony Optimization (ACO) Pheromone trails Shortest path around an obstacle This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. Those ants which choose, by chance, the shorter path around the obstacle will more rapidly reconstitute the interrupted pheromone trail compared to those which choose the longer path. Thus, the shorter path will receive a greater amount of pheromone per time unit and in turn a larger number of ants will choose the shorter path.
  • 15. Ant Colony Optimization (ACO) Pheromone trails Shortest path around an obstacle This elementary behavior of real ants can be used to explain how they can find the shortest path that reconnects a broken line after the sudden appearance of an unexpected obstacle has interrupted the initial path. Shortest path is being obtained.
  • 16. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it. Let us describe the algorithm: A small amount of ants travel randomly around the nest. N
  • 17. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it. One of the ants find food source. S N
  • 18. Pheromone trails Shortest path from the nest to the food source When ant finds food, it returns to the nest while laying down pheromones trail. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.
  • 19. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it. When other ants find a pheromone trail, they are likely not to keep travelling at random, but to instead follow the trail. S N
  • 20. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source If an ant eventually find food by following a pheromone trail, it returning to the nest while reinforcing the trail with more pheromones. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.
  • 21. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Due to their stochastic behavior, some ants are not following the pheromone trails, and thus uncover more possible paths. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.
  • 22. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Over time, however, the pheromones trails starts to evaporate, thus reducing its attractive strength. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.
  • 23. Ant Colony Optimization (ACO) Pheromone trails Shortest path from the nest to the food source Shortest path is being obtained. S N Ants are able, without using any spatial Information, to identify a sudden appearance of a food source around their nest, and to find the shortest available path to it.
  • 24. Ant Colony Optimization (ACO) • Let us consider the algorithm more formally. The number of ants M is usually equal to the number of nodes N in the graph. • A small amount of virtual pheromones is deposited on all edges of the beginning of the search. • The probability 𝑝 𝑖𝑗 𝑘 that ant k chooses the edge from node i to node j. 𝑝 𝑖𝑗 𝑘 = 𝜏𝑖𝑗 𝑎 𝜂𝑖𝑗 𝑏 ℎ ℰ 𝐽 𝑘 𝐻 𝜏𝑖ℎ 𝑎 𝜂𝑖ℎ 𝑏 Where 𝜏𝑖𝑗 = amount of virtual pheromones on that edge . 𝜂𝑖𝑗 = visibility of the node computed as the inverse of the edge length 1 𝑙 𝑖𝑗 . constant a & b weight the importance of the two factors. Formal ANT Algorithm
  • 25. Ant Colony Optimization (ACO) • If a = 0, ants choose solely on the basis of shortest distance . • Conversely if b = 0, ants choose solely on the basis of the pheromones amount. • The divider in the fraction sums up the pheromones and visibility values for the edges H that are available at the node where the ants sits as long as they belong to the set 𝐽 𝑘 of the nodes that the ants k has not yet visited . • as soon as the ant visits a node , this is deleted from the list 𝐽 𝑘 . • Once all the ants have completed a tour of the graph, each ant k retraces its own path and deposits an amount of pheromones ∆τ𝑖𝑗 𝑘 on the travelled edges according to • where 𝐿 𝑘 = total length of the path found by ant k. • Q is a constant , which is set to be the length of the shortest path estimated with a simple heuristic method. ∆τ𝑖𝑗 𝑘 = 𝑄 𝐿 𝑘 Formal ANT Algorithm , contd.
  • 26. Ant Colony Optimization (ACO) • The amount of pheromones on each edge after all M ants have retraced their own paths is equal to • Before starting all ants again in a search for the shortest path, pheromone levels evaporate according to • Where 0 ≤ ρ ≥ 1 is the coefficient of pheromone evaporation. • This concludes one iteration of the algorithm. This process is repeated for several Hundred iterations until satisfactory short path has been found. ∆ 𝑇𝑖𝑗= 𝑘 𝑀 ∆τ𝑖𝑗 𝑘 τ𝑖𝑗 𝑡+1 = (1 - ρ) τ𝑖𝑗 𝑡 ∆ 𝑇𝑖𝑗 Formal ANT Algorithm , contd.
  • 27. Ant Colony Optimization (ACO) • Positive Feedback accounts for rapid discovery of good solutions. • Virtual ants discover and maintain several short paths in addition to the best one because of the probabilistic edge choice. • Distributed computation avoids premature convergence. • The greedy heuristic helps find acceptable solution in the early solution in the early stages of the search process. • The collective interaction of a population of agents. Some inherent advantages
  • 28. Ant Colony Optimization (ACO) • Slower convergence than other Heuristics. • Performed poorly for TSP problems larger than 75 cities. • No centralized processor to guide the AS towards good solutions Disadvantages in Ant Systems
  • 29. Ant Colony Optimization (ACO) • ACO is a recently proposed meta-heuristic approach for solving hard combinatorial optimization problems. • Artificial ants implement a randomized construction heuristic which makes probabilistic decisions. • The cumulated search experience is taken into account by the adaptation of the pheromone trail. • ACO Shows great performance with the “ill-structured” problems like network routing. • In ACO Local search is extremely important to obtain good results. Conclusions
  • 30. Ant Colony Optimization (ACO) Questions, Comments? Thank You