SlideShare a Scribd company logo
Travelling Salesman Problem
Agenda:
 Introduction
 Overview
 ACO Algorithm
 A Simple TSP Example
 Pros and Cons
Introduction:
 The concept of Travelling Salesman Problem TSP is
simple, it reflects a salesman's problems that has to
pass through all the cities given and return to its origin
with the shortest distance to be travel.
ANT Colony Optimization in TSP
Example:
Overview of Ant Colony Optimization:
 Optimization Technique Proposed by Marco
Dorigo in the early ’90
 Multi-agent approach for solving difficult
combinatorial optimization problems
 Originally applied to Traveling Salesman
Problem
 Has become new and fruitful research area
The Ants:
 Can explore vast areas without global view of
the ground.
 Can find the food and bring it back to the nest.
 Will converge to the shortest path.
How can they manage such great tasks ?
Ants are ,
essentially blind, deaf and dumb.
social creatures – behavior directed to survival of colony
Question: how can ants find the short path to food sources?
SHORTEST PATH:
• Ants deposit pheromones on ground that form a trail. The trail attracts other ants.
• Pheromones evaporate faster on longer paths.
• Shorter paths serve as the way to food for most of the other ants.
ACO Algorithm:
 Ant Colony Algorithms are typically use to solve minimum cost
problems.
 We may usually have N nodes and A undirected arcs
 There are two working modes for the ants: either forwards or
backwards
 The ants memory allows them to retrace the path it has followed
while searching for the destination node
 Before moving backward on their memorized path, they eliminate
any loops from it. While moving backwards, the ants leave
pheromones on the arcs they traversed.
ACO Algorithm:
 At the beginning of the search process, a constant amount of
pheromone is assigned to all arcs. When located at a node i an ant k
uses the pheromone trail to compute the probability of choosing j as
the next node:
 where is the neighborhood of ant k when in node i.
ACO Algorithm:
 When the arc ( i, j) is traversed , the pheromone value changes as
follows:
 By using this rule, the probability increases that forthcoming ants
will use this arc.
 After each ant k has moved to the next node, the pheromones
evaporate by the following equation to all the arcs:
Algorithm for TSP(AS)
Initialize
Place each ant in a randomly chosen city
Choose NextCity(For Each Ant)
more cities
to visit
For Each Ant
Return to the initial cities
Update pheromone level using the tour cost for each ant
Print Best tour
yes
No
Stopping
criteria
yes
No
A
D
CB
1
[]
4
[]
3
[]
2
[]
dAB =8;dBC = 4;dCD =15;dDA =613
A Simple TSP Example:
A
D
C
B
1
[A]
3
[C]
2
[B]
4
[D]
14
Iteration 1:
1
[A]
A
D
CB
15
How to build next sub-solution?
A
D
C
B
2
[B,C]
3
[C,D]
1
[A,B]
4
[D,A]
16
Iteration 2:
A
D
C
B
2
[B,C,D]
3
[B,C,A]
4
[D,A,B]
1
[A,B,C]
17
Iteration 3:
A
D
C
B
1
[A,B,C,D]
2
[B,C,D,A]
3
[C,D,A,B]
4
[D,A,B,C]
18
Iteration 4:
1
[A,B,C,D
L1 =27
L2 =25
L3 =29
L4 =18
2
[B,C,D,A]
3
[C,D,A,B]
4
[D,A,B,C]
19
Best tour
Path and Pheromone Evaluation
2. End of First Run
4. All ants are die
5. New ants are born
3. Save Best Tour (Sequence and length)
CALCULATION
1. Path and Pheromone Evaluation
Advantages and Disadvantages
 For TSPs (Traveling Salesman Problem), relatively efficient
 for a small number of nodes, TSPs can be solved by exhaustive search
 for a large number of nodes, TSPs are very computationally difficult to solve
exponential time to convergence
 Performs better against other global optimization techniques such as neural net,
genetic algorithms, simulated annealing
 Can be used in dynamic applications (adapts to changes such as new distances,
etc.)
 Convergence is guaranteed, but time to convergence uncertain
21

More Related Content

What's hot

Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman ProblemDaniel Raditya
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentationPartha Das
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
KULDEEP MATHUR
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
The Traveling Salesman Problem
The Traveling Salesman ProblemThe Traveling Salesman Problem
The Traveling Salesman ProblemMaryam Alipour
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
Hinal Lunagariya
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
Shikha Gupta
 
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
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Joy Dutta
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
Rishabh Soni
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
Fahim Ferdous
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
Shivank Shah
 
A* algorithm
A* algorithmA* algorithm
A* algorithm
Komal Samdariya
 
Introduction to Dynamic Programming, Principle of Optimality
Introduction to Dynamic Programming, Principle of OptimalityIntroduction to Dynamic Programming, Principle of Optimality
Introduction to Dynamic Programming, Principle of Optimality
Bhavin Darji
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
vikas dhakane
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationvk1dadhich
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
Mohamed Talaat
 
Divide and Conquer
Divide and ConquerDivide and Conquer
Divide and Conquer
Melaku Bayih Demessie
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
supriya shilwant
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
hodcsencet
 

What's hot (20)

Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
 
The Traveling Salesman Problem
The Traveling Salesman ProblemThe Traveling Salesman Problem
The Traveling Salesman Problem
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Travelling Salesman Problem
Travelling Salesman ProblemTravelling Salesman Problem
Travelling Salesman Problem
 
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
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
 
A* algorithm
A* algorithmA* algorithm
A* algorithm
 
Introduction to Dynamic Programming, Principle of Optimality
Introduction to Dynamic Programming, Principle of OptimalityIntroduction to Dynamic Programming, Principle of Optimality
Introduction to Dynamic Programming, Principle of Optimality
 
I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
 
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
 
Divide and Conquer
Divide and ConquerDivide and Conquer
Divide and Conquer
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 

Similar to Travelling salesman problem

acoa
acoaacoa
Heuristic algorithms for solving TSP.doc.pptx
Heuristic algorithms for solving TSP.doc.pptxHeuristic algorithms for solving TSP.doc.pptx
Heuristic algorithms for solving TSP.doc.pptx
lwz614595250
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
nrusinhapadhi
 
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
Akash Sethiya
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
Ahmed Fouad Ali
 
53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt
AhmedSalimJAlJawadi
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
Swetanshmani Shrivastava
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
vijayalakshmi257551
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
PrasadNagelli
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Lecture 9 aco
Lecture 9 acoLecture 9 aco
Lecture 9 acomcradc
 

Similar to Travelling salesman problem (20)

acoa
acoaacoa
acoa
 
Heuristic algorithms for solving TSP.doc.pptx
Heuristic algorithms for solving TSP.doc.pptxHeuristic algorithms for solving TSP.doc.pptx
Heuristic algorithms for solving TSP.doc.pptx
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
 
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
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
 
53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
K046036367
K046036367K046036367
K046036367
 
Acoseminar
AcoseminarAcoseminar
Acoseminar
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Lecture 9 aco
Lecture 9 acoLecture 9 aco
Lecture 9 aco
 
Swapnil Shahade
Swapnil  ShahadeSwapnil  Shahade
Swapnil Shahade
 
Tsp problem
Tsp problemTsp problem
Tsp problem
 
aco-3a.ppt
aco-3a.pptaco-3a.ppt
aco-3a.ppt
 
aco-3a.ppt
aco-3a.pptaco-3a.ppt
aco-3a.ppt
 
aco-3a.ppt
aco-3a.pptaco-3a.ppt
aco-3a.ppt
 
Aco
AcoAco
Aco
 

Recently uploaded

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 

Travelling salesman problem

  • 2. Agenda:  Introduction  Overview  ACO Algorithm  A Simple TSP Example  Pros and Cons
  • 3. Introduction:  The concept of Travelling Salesman Problem TSP is simple, it reflects a salesman's problems that has to pass through all the cities given and return to its origin with the shortest distance to be travel.
  • 4. ANT Colony Optimization in TSP Example:
  • 5. Overview of Ant Colony Optimization:  Optimization Technique Proposed by Marco Dorigo in the early ’90  Multi-agent approach for solving difficult combinatorial optimization problems  Originally applied to Traveling Salesman Problem  Has become new and fruitful research area
  • 6. The Ants:  Can explore vast areas without global view of the ground.  Can find the food and bring it back to the nest.  Will converge to the shortest path.
  • 7. How can they manage such great tasks ? Ants are , essentially blind, deaf and dumb. social creatures – behavior directed to survival of colony Question: how can ants find the short path to food sources?
  • 8. SHORTEST PATH: • Ants deposit pheromones on ground that form a trail. The trail attracts other ants. • Pheromones evaporate faster on longer paths. • Shorter paths serve as the way to food for most of the other ants.
  • 9. ACO Algorithm:  Ant Colony Algorithms are typically use to solve minimum cost problems.  We may usually have N nodes and A undirected arcs  There are two working modes for the ants: either forwards or backwards  The ants memory allows them to retrace the path it has followed while searching for the destination node  Before moving backward on their memorized path, they eliminate any loops from it. While moving backwards, the ants leave pheromones on the arcs they traversed.
  • 10. ACO Algorithm:  At the beginning of the search process, a constant amount of pheromone is assigned to all arcs. When located at a node i an ant k uses the pheromone trail to compute the probability of choosing j as the next node:  where is the neighborhood of ant k when in node i.
  • 11. ACO Algorithm:  When the arc ( i, j) is traversed , the pheromone value changes as follows:  By using this rule, the probability increases that forthcoming ants will use this arc.  After each ant k has moved to the next node, the pheromones evaporate by the following equation to all the arcs:
  • 12. Algorithm for TSP(AS) Initialize Place each ant in a randomly chosen city Choose NextCity(For Each Ant) more cities to visit For Each Ant Return to the initial cities Update pheromone level using the tour cost for each ant Print Best tour yes No Stopping criteria yes No
  • 13. A D CB 1 [] 4 [] 3 [] 2 [] dAB =8;dBC = 4;dCD =15;dDA =613 A Simple TSP Example:
  • 15. 1 [A] A D CB 15 How to build next sub-solution?
  • 19. 1 [A,B,C,D L1 =27 L2 =25 L3 =29 L4 =18 2 [B,C,D,A] 3 [C,D,A,B] 4 [D,A,B,C] 19 Best tour Path and Pheromone Evaluation
  • 20. 2. End of First Run 4. All ants are die 5. New ants are born 3. Save Best Tour (Sequence and length) CALCULATION 1. Path and Pheromone Evaluation
  • 21. Advantages and Disadvantages  For TSPs (Traveling Salesman Problem), relatively efficient  for a small number of nodes, TSPs can be solved by exhaustive search  for a large number of nodes, TSPs are very computationally difficult to solve exponential time to convergence  Performs better against other global optimization techniques such as neural net, genetic algorithms, simulated annealing  Can be used in dynamic applications (adapts to changes such as new distances, etc.)  Convergence is guaranteed, but time to convergence uncertain 21