SlideShare a Scribd company logo
1 of 34
Ant Colony Optimization
Overview
ACO Concept
• Ants (blind) navigate from nest to food
source
• Shortest path is discovered via pheromone
trails
– each ant moves at random
– pheromone is deposited on path
– ants detect lead ant’s path, inclined to follow
– more pheromone on path increases probability of
path being followed
ACO System
• Virtual “trail” accumulated on path segments
• Starting node selected at random
• Path selected at random
– based on amount of “trail” present on possible
paths from starting node
– higher probability for paths with more “trail”
• Ant reaches next node, selects next path
• Continues until reaches starting node
• Finished “tour” is a solution
ACO System, cont.
• A completed tour is analyzed for optimality
• “Trail” amount adjusted to favor better
solutions
– better solutions receive more trail
– worse solutions receive less trail
– higher probability of ant selecting path that is
part of a better-performing tour
• New cycle is performed
• Repeated until most ants select the same tour
on every cycle (convergence to solution)
ACO System, cont.
• Often applied to TSP (Travelling Salesman
Problem): shortest path between n nodes
• Algorithm in Pseudocode:
– Initialize Trail
– Do While (Stopping Criteria Not Satisfied) – Cycle Loop
• Do Until (Each Ant Completes a Tour) – Tour Loop
• Local Trail Update
• End Do
• Analyze Tours
• Global Trail Update
– End Do
Background
• Discrete optimization problems difficult
to solve
• “Soft computing techniques” developed
in past ten years:
– Genetic algorithms (GAs)
• based on natural selection and genetics
– Ant Colony Optimization (ACO)
• modeling ant colony behavior
Background, cont.
• Developed by Marco Dorigo (Milan,
Italy), and others in early 1990s
• Some common applications:
– Quadratic assignment problems
– Scheduling problems
– Dynamic routing problems in networks
• Theoretical analysis difficult
– algorithm is based on a series of random decisions
(by artificial ants)
– probability of decisions changes on each iteration
Implementation
Ant Algorithms
Ant Algorithms
Implementation
• Can be used for both Static and
Dynamic Combinatorial optimization
problems
• Convergence is guaranteed, although the
speed is unknown
– Value
– Solution
The 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.
• Pheromones are only deposited in
backward mode.
The Algorithm
• 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.
The Algorithm
• The ants evaluate the cost of the paths
they have traversed.
• The shorter paths will receive a greater
deposit of pheromones. An evaporation
rule will be tied with the pheromones,
which will reduce the chance for poor
quality solutions.
The 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.
0
k
i
ij k
i
k
il
ij l N
k
i
if j N
p
if j N








 




k
i
N
The 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.
k
ij ij
  
  
The Algorithm
• After each ant k has moved to the next
node, the pheromones evaporate by the
following equation to all the arcs:
• where is a parameter. An
iteration is a complete cycle involving
ants’ movement, pheromone evaporation,
and pheromone deposit.
(1 ) , ( , )
ij ij
p i j A
 
   
(0,1]
p 
• where nij is the heuristic visibility of edge (i, j), generally
it is a value of 1/dij, where dij is the distance between city
i and city j. City J is a set of cities which remain to be
visited when the ant is at city i. α and β are two adjustable
positive parameters that control the relative weights of
the pheromone trail and of the heuristic visibility. If α=0,
the closed vertex i more likely to be selected. This is
responding to a greedy algorithm. If β=0, only
pheromone amplification is at work: This method will lead
the system to a stagnation situation, i.e. a situation in
which all the ants generate a sub-optimal tour. So the
trade-off between edge length and pheromone intensity is
necessary.
Steps for Solving a Problem
by ACO
1. Represent the problem in the form of sets of
components and transitions, or by a set of weighted
graphs, on which ants can build solutions
2. Define the meaning of the pheromone trails
3. Define the heuristic preference for the ant while
constructing a solution
4. If possible implement a efficient local search
algorithm for the problem to be solved.
5. Choose a specific ACO algorithm and apply to
problem being solved
6. Tune the parameter of the ACO algorithm.
Applications
Efficiently Solves NP hard Problems
• Routing
– TSP (Traveling Salesman Problem)
– Vehicle Routing
– Sequential Ordering
• Assignment
– QAP (Quadratic Assignment Problem)
– Graph Coloring
– Generalized Assignment
– Frequency Assignment
– University Course Time Scheduling
4
3
5
2
1
Applications
• Scheduling
– Job Shop
– Open Shop
– Flow Shop
– Total tardiness (weighted/non-weighted)
– Project Scheduling
– Group Shop
• Subset
– Multi-Knapsack
– Max Independent Set
– Redundancy Allocation
– Set Covering
– Weight Constrained Graph Tree partition
– Arc-weighted L cardinality tree
– Maximum Clique
Applications
• Other
– Shortest Common Sequence
– Constraint Satisfaction
– 2D-HP protein folding
– Bin Packing
• Machine Learning
– Classification Rules
– Bayesian networks
– Fuzzy systems
• Network Routing
– Connection oriented network routing
– Connection network routing
– Optical network routing
Advantages and
Disadvantages
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 (NP-hard) – exponential time to
convergence
• Performs better against other global optimization techniques
for TSP (neural net, genetic algorithms, simulated annealing)
• Compared to GAs (Genetic Algorithms):
– retains memory of entire colony instead of previous
generation only
– less affected by poor initial solutions (due to combination of
random path selection and colony memory)
Advantages and Disadvantages,
cont.
• Can be used in dynamic applications (adapts to
changes such as new distances, etc.)
• Has been applied to a wide variety of
applications
• As with GAs, good choice for constrained
discrete problems (not a gradient-based
algorithm)
Advantages and Disadvantages,
cont.
• Theoretical analysis is difficult:
– Due to sequences of random decisions (not
independent)
– Probability distribution changes by
iteration
– Research is experimental rather than
theoretical
• Convergence is guaranteed, but time to
convergence uncertain
Advantages and Disadvantages,
cont.
• Tradeoffs in evaluating convergence:
– In NP-hard problems, need high-quality solutions quickly –
focus is on quality of solutions
– In dynamic network routing problems, need solutions for
changing conditions – focus is on effective evaluation of
alternative paths
• Coding is somewhat complicated, not straightforward
– Pheromone “trail” additions/deletions, global updates and
local updates
– Large number of different ACO algorithms to exploit
different problem characteristics
Questions?
• ‫݌‬ ‫݌‬ ൌ ఛ‫݌‬ ‫݌‬ ఎ‫݌‬ ∑ሺఛ ‫݌‬ ‫݌‬ ఎ ‫݌‬
ሻ (6) where τi - indicates the
attractiveness of transition in the past
ηi - adds to transition attractiveness
for ants, Ni - set of nodes connected to
point i, without the last visited point
before i, α, - parameters found by
simulation.
• reverse path according to formula (7). t
t ij t ij 1 (7) where τijt -
value of pheromone in step t, Δτ- value
by ants saved pheromones in step t.
Values Δτ can be constant or they can
be
Assignment
• Apply the ant colony optimization technique for solving travelling
salesperson problem.
• Ant Colony Optimization is a new meta-heuristic technique used
for solving different combinatorial optimization problems. ACO
is based on the behaviors of ant colony and this method has
strong robustness as well as good distributed calculative
mechanism. ACO has very good search capability for
optimization problems. Travelling salesman problem is one of the
most famous combinatorial optimization problems.

More Related Content

Similar to Ant Colony Optimization algorithms in ADSA

iBAT: Detecting Anomalous Taxi Trajectories from GPS Traces
iBAT: Detecting Anomalous Taxi Trajectories from GPS TracesiBAT: Detecting Anomalous Taxi Trajectories from GPS Traces
iBAT: Detecting Anomalous Taxi Trajectories from GPS TracesRrubaa Panchendrarajan
 
Ants coony optimiztion problem in Advance analysis of algorithms
Ants coony optimiztion problem in Advance analysis of algorithmsAnts coony optimiztion problem in Advance analysis of algorithms
Ants coony optimiztion problem in Advance analysis of algorithmsALIZAIB KHAN
 
1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...Mamun Hasan
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
seminar HBMO
seminar HBMOseminar HBMO
seminar HBMOavaninith
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1aishwaryaarrao3
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxLina Kadam
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptanushaj46
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfnrusinhapadhi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationJoy Dutta
 
SPLT Transformer.pptx
SPLT Transformer.pptxSPLT Transformer.pptx
SPLT Transformer.pptxSeungeon Baek
 
ANT ALGORITME.pptx
ANT ALGORITME.pptxANT ALGORITME.pptx
ANT ALGORITME.pptxRiki378702
 
PSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptxPSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptxJAYRAJSINGH85
 

Similar to Ant Colony Optimization algorithms in ADSA (20)

iBAT: Detecting Anomalous Taxi Trajectories from GPS Traces
iBAT: Detecting Anomalous Taxi Trajectories from GPS TracesiBAT: Detecting Anomalous Taxi Trajectories from GPS Traces
iBAT: Detecting Anomalous Taxi Trajectories from GPS Traces
 
AC overview
AC overviewAC overview
AC overview
 
Ants coony optimiztion problem in Advance analysis of algorithms
Ants coony optimiztion problem in Advance analysis of algorithmsAnts coony optimiztion problem in Advance analysis of algorithms
Ants coony optimiztion problem in Advance analysis of algorithms
 
1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...1907555 ant colony optimization for simulated dynamic multi-objective railway...
1907555 ant colony optimization for simulated dynamic multi-objective railway...
 
Av 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman FilterAv 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman Filter
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
seminar HBMO
seminar HBMOseminar HBMO
seminar HBMO
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptx
 
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
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
SPLT Transformer.pptx
SPLT Transformer.pptxSPLT Transformer.pptx
SPLT Transformer.pptx
 
ANT ALGORITME.pptx
ANT ALGORITME.pptxANT ALGORITME.pptx
ANT ALGORITME.pptx
 
September 30, Probabilistic Modeling
September 30, Probabilistic ModelingSeptember 30, Probabilistic Modeling
September 30, Probabilistic Modeling
 
PSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptxPSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptx
 
Final project
Final projectFinal project
Final project
 

More from ALIZAIB KHAN

decison tree and rules in data mining techniques
decison tree and rules in data mining techniquesdecison tree and rules in data mining techniques
decison tree and rules in data mining techniquesALIZAIB KHAN
 
Artificial Neural Networks for data mining
Artificial Neural Networks for data miningArtificial Neural Networks for data mining
Artificial Neural Networks for data miningALIZAIB KHAN
 
CS911-Lecture-19_40235.pptx
CS911-Lecture-19_40235.pptxCS911-Lecture-19_40235.pptx
CS911-Lecture-19_40235.pptxALIZAIB KHAN
 
CS911-Lecture-13_34826.pptx
CS911-Lecture-13_34826.pptxCS911-Lecture-13_34826.pptx
CS911-Lecture-13_34826.pptxALIZAIB KHAN
 
Types of Algorithms.ppt
Types of Algorithms.pptTypes of Algorithms.ppt
Types of Algorithms.pptALIZAIB KHAN
 

More from ALIZAIB KHAN (8)

decison tree and rules in data mining techniques
decison tree and rules in data mining techniquesdecison tree and rules in data mining techniques
decison tree and rules in data mining techniques
 
Artificial Neural Networks for data mining
Artificial Neural Networks for data miningArtificial Neural Networks for data mining
Artificial Neural Networks for data mining
 
Chapter01.ppt
Chapter01.pptChapter01.ppt
Chapter01.ppt
 
CS911-Lecture-19_40235.pptx
CS911-Lecture-19_40235.pptxCS911-Lecture-19_40235.pptx
CS911-Lecture-19_40235.pptx
 
CS911-Lecture-13_34826.pptx
CS911-Lecture-13_34826.pptxCS911-Lecture-13_34826.pptx
CS911-Lecture-13_34826.pptx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Types of Algorithms.ppt
Types of Algorithms.pptTypes of Algorithms.ppt
Types of Algorithms.ppt
 
10994479.ppt
10994479.ppt10994479.ppt
10994479.ppt
 

Recently uploaded

From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...limedy534
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 

Recently uploaded (20)

From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 

Ant Colony Optimization algorithms in ADSA

  • 3. ACO Concept • Ants (blind) navigate from nest to food source • Shortest path is discovered via pheromone trails – each ant moves at random – pheromone is deposited on path – ants detect lead ant’s path, inclined to follow – more pheromone on path increases probability of path being followed
  • 4. ACO System • Virtual “trail” accumulated on path segments • Starting node selected at random • Path selected at random – based on amount of “trail” present on possible paths from starting node – higher probability for paths with more “trail” • Ant reaches next node, selects next path • Continues until reaches starting node • Finished “tour” is a solution
  • 5. ACO System, cont. • A completed tour is analyzed for optimality • “Trail” amount adjusted to favor better solutions – better solutions receive more trail – worse solutions receive less trail – higher probability of ant selecting path that is part of a better-performing tour • New cycle is performed • Repeated until most ants select the same tour on every cycle (convergence to solution)
  • 6. ACO System, cont. • Often applied to TSP (Travelling Salesman Problem): shortest path between n nodes • Algorithm in Pseudocode: – Initialize Trail – Do While (Stopping Criteria Not Satisfied) – Cycle Loop • Do Until (Each Ant Completes a Tour) – Tour Loop • Local Trail Update • End Do • Analyze Tours • Global Trail Update – End Do
  • 7. Background • Discrete optimization problems difficult to solve • “Soft computing techniques” developed in past ten years: – Genetic algorithms (GAs) • based on natural selection and genetics – Ant Colony Optimization (ACO) • modeling ant colony behavior
  • 8. Background, cont. • Developed by Marco Dorigo (Milan, Italy), and others in early 1990s • Some common applications: – Quadratic assignment problems – Scheduling problems – Dynamic routing problems in networks • Theoretical analysis difficult – algorithm is based on a series of random decisions (by artificial ants) – probability of decisions changes on each iteration
  • 12. Implementation • Can be used for both Static and Dynamic Combinatorial optimization problems • Convergence is guaranteed, although the speed is unknown – Value – Solution
  • 13. The 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. • Pheromones are only deposited in backward mode.
  • 14. The Algorithm • 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.
  • 15. The Algorithm • The ants evaluate the cost of the paths they have traversed. • The shorter paths will receive a greater deposit of pheromones. An evaporation rule will be tied with the pheromones, which will reduce the chance for poor quality solutions.
  • 16. The 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. 0 k i ij k i k il ij l N k i if j N p if j N               k i N
  • 17. The 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. k ij ij      
  • 18. The Algorithm • After each ant k has moved to the next node, the pheromones evaporate by the following equation to all the arcs: • where is a parameter. An iteration is a complete cycle involving ants’ movement, pheromone evaporation, and pheromone deposit. (1 ) , ( , ) ij ij p i j A       (0,1] p 
  • 19. • where nij is the heuristic visibility of edge (i, j), generally it is a value of 1/dij, where dij is the distance between city i and city j. City J is a set of cities which remain to be visited when the ant is at city i. α and β are two adjustable positive parameters that control the relative weights of the pheromone trail and of the heuristic visibility. If α=0, the closed vertex i more likely to be selected. This is responding to a greedy algorithm. If β=0, only pheromone amplification is at work: This method will lead the system to a stagnation situation, i.e. a situation in which all the ants generate a sub-optimal tour. So the trade-off between edge length and pheromone intensity is necessary.
  • 20. Steps for Solving a Problem by ACO 1. Represent the problem in the form of sets of components and transitions, or by a set of weighted graphs, on which ants can build solutions 2. Define the meaning of the pheromone trails 3. Define the heuristic preference for the ant while constructing a solution 4. If possible implement a efficient local search algorithm for the problem to be solved. 5. Choose a specific ACO algorithm and apply to problem being solved 6. Tune the parameter of the ACO algorithm.
  • 21. Applications Efficiently Solves NP hard Problems • Routing – TSP (Traveling Salesman Problem) – Vehicle Routing – Sequential Ordering • Assignment – QAP (Quadratic Assignment Problem) – Graph Coloring – Generalized Assignment – Frequency Assignment – University Course Time Scheduling 4 3 5 2 1
  • 22. Applications • Scheduling – Job Shop – Open Shop – Flow Shop – Total tardiness (weighted/non-weighted) – Project Scheduling – Group Shop • Subset – Multi-Knapsack – Max Independent Set – Redundancy Allocation – Set Covering – Weight Constrained Graph Tree partition – Arc-weighted L cardinality tree – Maximum Clique
  • 23. Applications • Other – Shortest Common Sequence – Constraint Satisfaction – 2D-HP protein folding – Bin Packing • Machine Learning – Classification Rules – Bayesian networks – Fuzzy systems • Network Routing – Connection oriented network routing – Connection network routing – Optical network routing
  • 25. 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 (NP-hard) – exponential time to convergence • Performs better against other global optimization techniques for TSP (neural net, genetic algorithms, simulated annealing) • Compared to GAs (Genetic Algorithms): – retains memory of entire colony instead of previous generation only – less affected by poor initial solutions (due to combination of random path selection and colony memory)
  • 26. Advantages and Disadvantages, cont. • Can be used in dynamic applications (adapts to changes such as new distances, etc.) • Has been applied to a wide variety of applications • As with GAs, good choice for constrained discrete problems (not a gradient-based algorithm)
  • 27. Advantages and Disadvantages, cont. • Theoretical analysis is difficult: – Due to sequences of random decisions (not independent) – Probability distribution changes by iteration – Research is experimental rather than theoretical • Convergence is guaranteed, but time to convergence uncertain
  • 28. Advantages and Disadvantages, cont. • Tradeoffs in evaluating convergence: – In NP-hard problems, need high-quality solutions quickly – focus is on quality of solutions – In dynamic network routing problems, need solutions for changing conditions – focus is on effective evaluation of alternative paths • Coding is somewhat complicated, not straightforward – Pheromone “trail” additions/deletions, global updates and local updates – Large number of different ACO algorithms to exploit different problem characteristics
  • 30. • ‫݌‬ ‫݌‬ ൌ ఛ‫݌‬ ‫݌‬ ఎ‫݌‬ ∑ሺఛ ‫݌‬ ‫݌‬ ఎ ‫݌‬ ሻ (6) where τi - indicates the attractiveness of transition in the past ηi - adds to transition attractiveness for ants, Ni - set of nodes connected to point i, without the last visited point before i, α, - parameters found by simulation.
  • 31.
  • 32.
  • 33. • reverse path according to formula (7). t t ij t ij 1 (7) where τijt - value of pheromone in step t, Δτ- value by ants saved pheromones in step t. Values Δτ can be constant or they can be
  • 34. Assignment • Apply the ant colony optimization technique for solving travelling salesperson problem. • Ant Colony Optimization is a new meta-heuristic technique used for solving different combinatorial optimization problems. ACO is based on the behaviors of ant colony and this method has strong robustness as well as good distributed calculative mechanism. ACO has very good search capability for optimization problems. Travelling salesman problem is one of the most famous combinatorial optimization problems.