SlideShare a Scribd company logo
Ant Colony Optimization
(ACO)
Optimization
 Given a graph with two specified vertices A and B, find a shortest
path from A to B.
 Given a set of cities and pairwise distances, find a shortest tour.
 Given a sequence of amino acids of a protein, find the structure
of the protein.
 ‘Where is my manuscript for the talk, I put it on this pile of
papers...’
General optimization problem:
given f:Xℝ,
find xεX such that f(x) is minimum
 shortest path problem, polynomial
 traveling salesperson problem,
 protein structure prediction problem,
 needle in a haystack, hopeless
Ant Colony Optimization (ACO)
 In the real world, ants (initially) wander randomly, and upon
finding food return to their colony while laying down pheromone
trails. If other ants find such a path, they are likely not to keep
traveling at random, but instead follow the trail laid by earlier ants,
returning and reinforcing it if they eventually find food
 Over time, however, the pheromone trail starts to evaporate, thus
reducing its attractive strength. The more time it takes for an ant
to travel down the path and back again, the more time the
pheromones have to evaporate.
 A short path, by comparison, gets marched over faster, and thus
the pheromone density remains high
 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.
ACO
 Thus, when one ant finds a good (short) path from the colony to
a food source, other ants are more likely to follow that path, and
such positive feedback eventually leaves all the ants following a
single path.
 The idea of the ant colony algorithm is to mimic this behavior with
"simulated ants" walking around the search space representing
the problem to be solved.
 Ant colony optimization algorithms have been used to produce
near-optimal solutions to the traveling salesman problem.
 They have an advantage over simulated annealing and genetic
algorithm approaches when the graph may change dynamically.
The ant colony algorithm can be run continuously and can adapt
to changes in real time.
 This is of interest in network routing and urban transportation
systems.
ACO Defined
 A heuristic optimization method for
shortest path and other optimization
problems which borrows ideas from
biological ants.
 Based on the fact that ants are able to
find shortest route between their nest
and source of food.
Shortest Route
 Shortest route is found using pheromone
trails which ants deposit whenever they travel,
as a form of indirect communication
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
When ants leave their nest to search for a food source,
they randomly rotate around an obstacle
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
initially the pheromone deposits will be the same for the
right and left directions
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
When the ants in the shorter direction find a food source, they carry the
food and start returning back, following their pheromone trails, and still
depositing more pheromone.
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
An ant will most likely choose the shortest path when returning back to the
nest with food as this path will have the most deposited pheromone
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
For the same reason, new ants that later starts out from the nest
to find food will also choose the shortest path.
Ant Colony Optimization
 Ant foraging – Co-operative search by
pheromone trails
Over time, this positive feedback (autocatalytic) process prompts all
ants to choose the shorter path
ACO algorithm
 The process starts by generating m random
ants (solution).
 An ant represents a solution
string, with a selected value for each variable.
 An ant is evaluated according to an objective
function.
 Accordingly, pheromone concentration
associated with each possible route( variable
value) is changed in a way to reinforce good
solutions as follows:
Pseudocode:
Procedure AntColonyOptimization:
Initialize necessary parameters and pheromone trials;
while not termination do:
Generate ant population;
Calculate fitness values associated with each ant;
Find best solution through selection methods;
Update pheromone trial;
end while
end procedure
The pheromone update and the fitness calculations in the above pseudocode
can be found through the step-wise implementations mentioned above.
ACO algorithm
ACO algorithm Implementation
above.
ACO Pseudo Code
Pseudo code for ACO is shown below:
Pheromone Concentration Calculations
Pheromone Concentration Calculation
Main parameters at glance
ACO Characteristics
 Exploit a positive feedback mechanism
 Demonstrate a distributed computational
architecture
 Exploit a global data structure that changes
dynamically as each ant transverses the
route
 Has an element of distributed computation
to it involving the population of ants
 Involves probabilistic transitions among
states or rather between nodes

More Related Content

PPTX
Ant colony optimization
PPT
Ant colony optimization
PPTX
ant colony algorithm
PPTX
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
PDF
antcolonyoptimization-130619020831-phpapp01.pdf
PPTX
Swapnil Shahade
PPT
Ant Colony Optimization algorithms in ADSA
PPT
53564379-Ant-Colony-Optimization.ppt
Ant colony optimization
Ant colony optimization
ant colony algorithm
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
antcolonyoptimization-130619020831-phpapp01.pdf
Swapnil Shahade
Ant Colony Optimization algorithms in ADSA
53564379-Ant-Colony-Optimization.ppt

Similar to An overview of antcolonyoptimization.ppt (20)

PPTX
Ant Colony Optimization (ACO)
PPT
Ant Colony Optimization presentation
PPT
Ant colony optimization
PDF
Ant colony optimization
PDF
Ant colony optimization based routing algorithm in various wireless sensor ne...
PPTX
Classification with ant colony optimization
PPTX
Ant colony optimization
PDF
Ant colony optimization
PPTX
Final project
PPT
Ant Colony Optimization - ACO
PPT
PPTX
ant colony optimization
PDF
stuetzle.pdf
PPTX
Optimization by Ant Colony Method
PPTX
Ant Colony Optimization and path planning.pptx
PDF
Assembly Sequence Optimization
PDF
PPT
Ants coony optimiztion problem in Advance analysis of algorithms
PPTX
Ant colony optimization (aco)
Ant Colony Optimization (ACO)
Ant Colony Optimization presentation
Ant colony optimization
Ant colony optimization
Ant colony optimization based routing algorithm in various wireless sensor ne...
Classification with ant colony optimization
Ant colony optimization
Ant colony optimization
Final project
Ant Colony Optimization - ACO
ant colony optimization
stuetzle.pdf
Optimization by Ant Colony Method
Ant Colony Optimization and path planning.pptx
Assembly Sequence Optimization
Ants coony optimiztion problem in Advance analysis of algorithms
Ant colony optimization (aco)
Ad

More from PriyadharshiniG41 (20)

PPTX
artificial intelligence agents and its environment
PPTX
Knapsack problem based questions for practice
PDF
Presentation on the artificial intelligenc
PDF
Presentation on the artificial intelligenc
PPTX
Presentation on the artificial intelligence
PPTX
advanced java programming paradigms presentation
PPTX
types of operating system an overview of the topics.pptx
PPTX
Philosophy of engineering unit one by SRM
PPTX
MYSQL-database basic queries for good understanding
PPTX
multithreading to be used in java with good programs.pptx
PPTX
java basics concepts and the keywords needed
PPTX
interface in java explained in detailed form
PPTX
arraylist in java a comparison of the array and arraylist
PPTX
Abstraction encapsulation inheritance polymorphism
PPTX
System Boot how it works in the operating system
PPTX
BFS,DFS,Depth bound,Beam search,Iterative.pptx
PPT
recommendation system a topic in marketing analytics
PDF
understanding-cholera-a-comprehensive-analysis.pdf
PDF
combatting-malaria-strategies-for-prevention-and-treatment.pdf
PDF
ant colony optimization working and explanation
artificial intelligence agents and its environment
Knapsack problem based questions for practice
Presentation on the artificial intelligenc
Presentation on the artificial intelligenc
Presentation on the artificial intelligence
advanced java programming paradigms presentation
types of operating system an overview of the topics.pptx
Philosophy of engineering unit one by SRM
MYSQL-database basic queries for good understanding
multithreading to be used in java with good programs.pptx
java basics concepts and the keywords needed
interface in java explained in detailed form
arraylist in java a comparison of the array and arraylist
Abstraction encapsulation inheritance polymorphism
System Boot how it works in the operating system
BFS,DFS,Depth bound,Beam search,Iterative.pptx
recommendation system a topic in marketing analytics
understanding-cholera-a-comprehensive-analysis.pdf
combatting-malaria-strategies-for-prevention-and-treatment.pdf
ant colony optimization working and explanation
Ad

Recently uploaded (20)

PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Computer network topology notes for revision
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
1_Introduction to advance data techniques.pptx
PDF
Mega Projects Data Mega Projects Data
PDF
Lecture1 pattern recognition............
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Business Ppt On Nestle.pptx huunnnhhgfvu
Clinical guidelines as a resource for EBP(1).pdf
Computer network topology notes for revision
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
IB Computer Science - Internal Assessment.pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
STUDY DESIGN details- Lt Col Maksud (21).pptx
1_Introduction to advance data techniques.pptx
Mega Projects Data Mega Projects Data
Lecture1 pattern recognition............
Introduction-to-Cloud-ComputingFinal.pptx
Introduction to Knowledge Engineering Part 1
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
climate analysis of Dhaka ,Banglades.pptx
Business Analytics and business intelligence.pdf
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg

An overview of antcolonyoptimization.ppt

  • 2. Optimization  Given a graph with two specified vertices A and B, find a shortest path from A to B.  Given a set of cities and pairwise distances, find a shortest tour.  Given a sequence of amino acids of a protein, find the structure of the protein.  ‘Where is my manuscript for the talk, I put it on this pile of papers...’ General optimization problem: given f:Xℝ, find xεX such that f(x) is minimum  shortest path problem, polynomial  traveling salesperson problem,  protein structure prediction problem,  needle in a haystack, hopeless
  • 3. Ant Colony Optimization (ACO)  In the real world, ants (initially) wander randomly, and upon finding food return to their colony while laying down pheromone trails. If other ants find such a path, they are likely not to keep traveling at random, but instead follow the trail laid by earlier ants, returning and reinforcing it if they eventually find food  Over time, however, the pheromone trail starts to evaporate, thus reducing its attractive strength. The more time it takes for an ant to travel down the path and back again, the more time the pheromones have to evaporate.  A short path, by comparison, gets marched over faster, and thus the pheromone density remains high  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.
  • 4. ACO  Thus, when one ant finds a good (short) path from the colony to a food source, other ants are more likely to follow that path, and such positive feedback eventually leaves all the ants following a single path.  The idea of the ant colony algorithm is to mimic this behavior with "simulated ants" walking around the search space representing the problem to be solved.  Ant colony optimization algorithms have been used to produce near-optimal solutions to the traveling salesman problem.  They have an advantage over simulated annealing and genetic algorithm approaches when the graph may change dynamically. The ant colony algorithm can be run continuously and can adapt to changes in real time.  This is of interest in network routing and urban transportation systems.
  • 5. ACO Defined  A heuristic optimization method for shortest path and other optimization problems which borrows ideas from biological ants.  Based on the fact that ants are able to find shortest route between their nest and source of food.
  • 6. Shortest Route  Shortest route is found using pheromone trails which ants deposit whenever they travel, as a form of indirect communication
  • 7. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails When ants leave their nest to search for a food source, they randomly rotate around an obstacle
  • 8. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails initially the pheromone deposits will be the same for the right and left directions
  • 9. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails When the ants in the shorter direction find a food source, they carry the food and start returning back, following their pheromone trails, and still depositing more pheromone.
  • 10. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails An ant will most likely choose the shortest path when returning back to the nest with food as this path will have the most deposited pheromone
  • 11. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails For the same reason, new ants that later starts out from the nest to find food will also choose the shortest path.
  • 12. Ant Colony Optimization  Ant foraging – Co-operative search by pheromone trails Over time, this positive feedback (autocatalytic) process prompts all ants to choose the shorter path
  • 13. ACO algorithm  The process starts by generating m random ants (solution).  An ant represents a solution string, with a selected value for each variable.  An ant is evaluated according to an objective function.  Accordingly, pheromone concentration associated with each possible route( variable value) is changed in a way to reinforce good solutions as follows:
  • 14. Pseudocode: Procedure AntColonyOptimization: Initialize necessary parameters and pheromone trials; while not termination do: Generate ant population; Calculate fitness values associated with each ant; Find best solution through selection methods; Update pheromone trial; end while end procedure The pheromone update and the fitness calculations in the above pseudocode can be found through the step-wise implementations mentioned above.
  • 17. ACO Pseudo Code Pseudo code for ACO is shown below:
  • 21. ACO Characteristics  Exploit a positive feedback mechanism  Demonstrate a distributed computational architecture  Exploit a global data structure that changes dynamically as each ant transverses the route  Has an element of distributed computation to it involving the population of ants  Involves probabilistic transitions among states or rather between nodes