SlideShare a Scribd company logo
Ant Colony Optimization


By:
Sachin Agarwalla
Regd. No-0911012065
C.S.E(A)
                      Under Guidance Of:
                      Mr. Swadhin Ku. Barisal
                      B.E., M.Tech., CSE (IIT, Kharagpur)
                      Assistant Professor                   1
                      I.T.E.R
Optimization

              General optimization problem:
              given f:Xℝ,
              find xεX such that f(x) is minimum




 • Given a graph with two specified vertices A and B, find a shortest path
   from A to B.
 shortest path problem, polynomial



                                                                             2
Ant colony          food




                           3

             nest
Ant Colony Optimization (ACO):
a heuristic optimization method for shortest path
  and other optimization problems which borrows
  ideas from biological ants




                                                    4
Ant Colony Optimization
Outline

•     History: ACO for shortest paths
•     ACO for shortest paths I: directed
•     ACO for shortest paths II: general
•     Advantages and Disadvantages
•     Summary
•     References


                                           5
History: ACO for shortest
paths …
                            6
History: ACO for shortest paths

Goss et al. 1989, Deneuborg et al. 1990
                                                         food
experiments with Argentine ants:
• ants go from the nest to the food source and
  backwards
• after a while, the ants prefer the shortest path
  from the nest to the food source
• stigmercy:
   • the ants communicate indirectly laying
     pheromone trails and following trails with higher
     pheromone
   • length gradient  pheromone will accumulate
     on the shortest path

                                                         nest
                                                                7
ACO for shortest paths I:directed
A first ACO for a simple shortest path problem:

directed acyclic graph (V={0,...,N}, E={ij}), ant hill: 0, food source: N




       for all i: pi:=0;                                   /*ant position init*/
               si:=hungry;                                   /*ant state init*/
       for all i j: τij:=const;                           /*pheromone init*/
       repeat for all i: ant_step(i);                             /*ant step*/
                                                                                   8
                 for all i j: τij := (1-ρ) τij ;   /*evaporate pheromone*/
ACO for shortest paths I:directed




ant_step(i):
if pi=N: si:=satisfied; if pi=0: si:=hungry;                     /*collect food/deliver food*/
if si=hungry: choose j with pij with probability τpi j/Σpij’τpij’     /*choose next step*/
                update Δτpi j := ε; pi:=j;                         /*update pheromone*/
if si=satisfied: choose j with jpi with probability τjpi/Σj’piτj’pi
               update Δτjpi:= ε; pj:=i;                         /* reversed directions*/
                                                                                                 9
ACO for shortest paths II:general

...a more complex undirected cyclic graph ...

                 WC4        WC5          Barbara   Marc


               449a         Anja         Dagmar    Espresso


               322          339          WC3       Friedhelm

          Fachschaft        WC2          Rechner   Astrid

        Zeitschriften       WC           Bibo      RZ-Sekretariat

Mensa         Cafete     Getraenke-      RZ        Toiletten
                            automat
                                                                    10
ACO for shortest paths II:general


                             ... Marc was not so happy with the result ...




                                                                 449a
449a
                                                                             11
ACO for shortest paths II:general
   for all i: pi:=0;                                 /*ant position init*/
         si:=hungry
             si:=( );                            /*ant brain is empty*/         minibrain
   for all i-j: τi-j:=const;                         /*pheromone init*/
    repeat for all i: construct_solution(i);
repeat for all i: ant_step(i);
           for all i: global_pheromone_update(i);
              for all i-j: τi-j := (1-ρ) τi-j;            /*evaporate*/

   construct_solution(i):
   while pi≠N                                            /*no solution*/
      choose j with pi-j with probability τpi-j / Σpi-j’τpi-j’;
        pi:=j;
                                                                              minibrain
      append j to si;                            /*remember the trail*/

   global_pheromone_update(i):
                                                                             update according
   for all j-j’ in si:         Δτj-j’:= 1/length of the path stored in si;                      12
                                                                             to the quality
ACO for shortest paths II:general

                   WC4      WC5      Barbara   Marc



                            Anja     Dagmar    Espresso
                 449a



                            339      WC3       Friedhelm
                 322


         Fachschaft         WC2      Rechner   Astrid



        Zeitschriften       WC       Bibo      RZ-Sekretariat


Mensa          Cafete
                         Getraenke   RZ        Toiletten




                                                                13
ACO for shortest paths
         init pheromone ti-j ;
         repeat       for all ants i: construct_solution(i);
                      for all ants i: global_pheromone_update(i);
                      for all edges: evaporate pheromone;

         construct_solution(i):
         init ant;
         while not yet a solution:
             expand the solution by one edge probabilistically
             according to the pheromone;

         global_pheromone_update(i):
         for all edges in the solution:
                     increase the pheromone according to the quality;
                                                                        14
Advantages and Disadvantages


 Advantages :
           1) Positive feedback accounts for rapid discovery of good solution.
           2) Efficient for Travels salesman problem and other similar problem.
           3) Can be use in dynamic application.



Disadvantages :
           1) Theoretical analysis is difficult.
           2) Probability distribution changes by iteration.
           3) Time to convergence is uncertian.



                                                                                  15
Summary

•   Artificial Intelligence technique used to develop a new method to solve problems
    unsolvable since last many years
•   ACO is a recently proposed metaheuristic approach for solving hard combinatorial
    optimization problems.
•   Artificial ants implement a randomized construction heuristic which makes probabilistic
    decisions
•   ACO shows great performance with the “ill-structured” problems like network routing




                                                                                              16
References

•   M. Dorigo, M. Birattari, T. Stützle, “Ant Colony Optimization – Artificial Ants as a
    Computational Intelligence Technique”, IEEE Computational Intelligence Magazine,
    2006
•   C. Blum, Theoretical and Practical Aspects of Ant Colony Optimization, Dissertations
    in Artificial Intelligence, Vol. 282, Akademische Verlagsgesellschaft Aka GmbH, Berlin,
    Germany, 2004.
•   Wikipedia.com




                                                                                              17
Questions ?




              18
Thank You !




              19

More Related Content

What's hot

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Medhini Narasimhan
 
Ant Colony Optimization: Routing
Ant Colony Optimization: RoutingAnt Colony Optimization: Routing
Ant Colony Optimization: RoutingAdrian Wilke
 
Optimization by Ant Colony Method
Optimization by Ant Colony MethodOptimization by Ant Colony Method
Optimization by Ant Colony Method
Uday Wankar
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationAbdul Rahman
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
Swetanshmani Shrivastava
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
kamalikanath89
 
Jyotishkar dey roll 36.(swarm intelligence)
Jyotishkar dey roll  36.(swarm intelligence)Jyotishkar dey roll  36.(swarm intelligence)
Jyotishkar dey roll 36.(swarm intelligence)
Jyotishkar Dey
 
Ant Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its ApplicationsAnt Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its Applications
adil raja
 
Swarm Intelligence Presentation
Swarm Intelligence PresentationSwarm Intelligence Presentation
Swarm Intelligence Presentation
latcole
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Suman Chatterjee
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
Ahmed Fouad Ali
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
Nitesh Bichwani
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Joy Dutta
 
Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
قصي نسور
 
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
 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
bharatsharma88
 

What's hot (20)

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant Colony Optimization: Routing
Ant Colony Optimization: RoutingAnt Colony Optimization: Routing
Ant Colony Optimization: Routing
 
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
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
Final project
Final projectFinal project
Final project
 
Jyotishkar dey roll 36.(swarm intelligence)
Jyotishkar dey roll  36.(swarm intelligence)Jyotishkar dey roll  36.(swarm intelligence)
Jyotishkar dey roll 36.(swarm intelligence)
 
Ant Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its ApplicationsAnt Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its Applications
 
Swarm Intelligence Presentation
Swarm Intelligence PresentationSwarm Intelligence Presentation
Swarm Intelligence Presentation
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
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
 
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 algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 

Ant colony optimization

  • 1. Ant Colony Optimization By: Sachin Agarwalla Regd. No-0911012065 C.S.E(A) Under Guidance Of: Mr. Swadhin Ku. Barisal B.E., M.Tech., CSE (IIT, Kharagpur) Assistant Professor 1 I.T.E.R
  • 2. Optimization General optimization problem: given f:Xℝ, find xεX such that f(x) is minimum • Given a graph with two specified vertices A and B, find a shortest path from A to B.  shortest path problem, polynomial 2
  • 3. Ant colony food 3 nest
  • 4. Ant Colony Optimization (ACO): a heuristic optimization method for shortest path and other optimization problems which borrows ideas from biological ants 4
  • 5. Ant Colony Optimization Outline • History: ACO for shortest paths • ACO for shortest paths I: directed • ACO for shortest paths II: general • Advantages and Disadvantages • Summary • References 5
  • 6. History: ACO for shortest paths … 6
  • 7. History: ACO for shortest paths Goss et al. 1989, Deneuborg et al. 1990 food experiments with Argentine ants: • ants go from the nest to the food source and backwards • after a while, the ants prefer the shortest path from the nest to the food source • stigmercy: • the ants communicate indirectly laying pheromone trails and following trails with higher pheromone • length gradient  pheromone will accumulate on the shortest path nest 7
  • 8. ACO for shortest paths I:directed A first ACO for a simple shortest path problem: directed acyclic graph (V={0,...,N}, E={ij}), ant hill: 0, food source: N for all i: pi:=0; /*ant position init*/ si:=hungry; /*ant state init*/ for all i j: τij:=const; /*pheromone init*/ repeat for all i: ant_step(i); /*ant step*/ 8 for all i j: τij := (1-ρ) τij ; /*evaporate pheromone*/
  • 9. ACO for shortest paths I:directed ant_step(i): if pi=N: si:=satisfied; if pi=0: si:=hungry; /*collect food/deliver food*/ if si=hungry: choose j with pij with probability τpi j/Σpij’τpij’ /*choose next step*/ update Δτpi j := ε; pi:=j; /*update pheromone*/ if si=satisfied: choose j with jpi with probability τjpi/Σj’piτj’pi update Δτjpi:= ε; pj:=i; /* reversed directions*/ 9
  • 10. ACO for shortest paths II:general ...a more complex undirected cyclic graph ... WC4 WC5 Barbara Marc 449a Anja Dagmar Espresso 322 339 WC3 Friedhelm Fachschaft WC2 Rechner Astrid Zeitschriften WC Bibo RZ-Sekretariat Mensa Cafete Getraenke- RZ Toiletten automat 10
  • 11. ACO for shortest paths II:general ... Marc was not so happy with the result ... 449a 449a 11
  • 12. ACO for shortest paths II:general for all i: pi:=0; /*ant position init*/ si:=hungry si:=( ); /*ant brain is empty*/ minibrain for all i-j: τi-j:=const; /*pheromone init*/ repeat for all i: construct_solution(i); repeat for all i: ant_step(i); for all i: global_pheromone_update(i); for all i-j: τi-j := (1-ρ) τi-j; /*evaporate*/ construct_solution(i): while pi≠N /*no solution*/ choose j with pi-j with probability τpi-j / Σpi-j’τpi-j’; pi:=j; minibrain append j to si; /*remember the trail*/ global_pheromone_update(i): update according for all j-j’ in si: Δτj-j’:= 1/length of the path stored in si; 12 to the quality
  • 13. ACO for shortest paths II:general WC4 WC5 Barbara Marc Anja Dagmar Espresso 449a 339 WC3 Friedhelm 322 Fachschaft WC2 Rechner Astrid Zeitschriften WC Bibo RZ-Sekretariat Mensa Cafete Getraenke RZ Toiletten 13
  • 14. ACO for shortest paths init pheromone ti-j ; repeat for all ants i: construct_solution(i); for all ants i: global_pheromone_update(i); for all edges: evaporate pheromone; construct_solution(i): init ant; while not yet a solution: expand the solution by one edge probabilistically according to the pheromone; global_pheromone_update(i): for all edges in the solution: increase the pheromone according to the quality; 14
  • 15. Advantages and Disadvantages Advantages : 1) Positive feedback accounts for rapid discovery of good solution. 2) Efficient for Travels salesman problem and other similar problem. 3) Can be use in dynamic application. Disadvantages : 1) Theoretical analysis is difficult. 2) Probability distribution changes by iteration. 3) Time to convergence is uncertian. 15
  • 16. Summary • Artificial Intelligence technique used to develop a new method to solve problems unsolvable since last many years • ACO is a recently proposed metaheuristic approach for solving hard combinatorial optimization problems. • Artificial ants implement a randomized construction heuristic which makes probabilistic decisions • ACO shows great performance with the “ill-structured” problems like network routing 16
  • 17. References • M. Dorigo, M. Birattari, T. Stützle, “Ant Colony Optimization – Artificial Ants as a Computational Intelligence Technique”, IEEE Computational Intelligence Magazine, 2006 • C. Blum, Theoretical and Practical Aspects of Ant Colony Optimization, Dissertations in Artificial Intelligence, Vol. 282, Akademische Verlagsgesellschaft Aka GmbH, Berlin, Germany, 2004. • Wikipedia.com 17