SlideShare une entreprise Scribd logo
1  sur  30
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

Contenu connexe

Tendances

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Abdul Rahman
 
Ant Colony Optimization: Routing
Ant Colony Optimization: RoutingAnt Colony Optimization: Routing
Ant Colony Optimization: Routing
Adrian Wilke
 
Lecture 9 aco
Lecture 9 acoLecture 9 aco
Lecture 9 aco
mcradc
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Meenakshi Devi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
vk1dadhich
 

Tendances (20)

Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
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 (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
 
Final project
Final projectFinal project
Final project
 
Ant Colony Optimization: Routing
Ant Colony Optimization: RoutingAnt Colony Optimization: Routing
Ant Colony Optimization: Routing
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Lecture 9 aco
Lecture 9 acoLecture 9 aco
Lecture 9 aco
 
Optimization by Ant Colony Method
Optimization by Ant Colony MethodOptimization by Ant Colony Method
Optimization by Ant Colony Method
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Travelling and salesman problem using ant colony optimization
Travelling and salesman problem using ant colony optimizationTravelling and salesman problem using ant colony optimization
Travelling and salesman problem using 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...
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
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
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 

En vedette

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
 

En vedette (13)

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
 
Bee algorithm
Bee algorithmBee algorithm
Bee algorithm
 

Similaire à ant colony algorithm

Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_Optimization
Neha Reddy
 
Neural nw ant colony algorithm
Neural nw   ant colony algorithmNeural nw   ant colony algorithm
Neural nw ant colony algorithm
Eng. Dr. Dennis N. Mwighusa
 
Ants and ants based routing
Ants and ants based routingAnts and ants based routing
Ants and ants based routing
Varun Chopra
 
Ai presentation
Ai presentationAi presentation
Ai presentation
vini89
 

Similaire à 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
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
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
 
231semMish.ppt
231semMish.ppt231semMish.ppt
231semMish.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
 
Ai presentation
Ai presentationAi presentation
Ai presentation
 

Dernier

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

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