SlideShare a Scribd company logo
1 of 20
Download to read offline
Ant Colony Optimization
Numerical Example
By :- Harish Kant Soni
Roll No:- 12CE31004
IIT Kharagpur
Problem
β€’ min (x1
2 + x1x2 + x2)
β€’ x1 = [1,2,3,4]
β€’ x2= [3,4,5]
It’s better to assume same of no
ants as no of values.
So we take 4 ants for x1
and 3 ants for x2
β€’ Each ant is assigned a
discrete value.
β€’ x1j , j = 1,2,3,4
β€’ x2k , k = 1,2,3
Ants for x1 Ants for x2
x11 1 x21 3
x12 2 x22 4
x13 3 x23 5
x14 4
β€’ Assume equal
pheromone for
each path = 1
Iteration=1
β€’ for any ant k the probability
of selecting it’s path is given
by
β€’ P1j = Ο„1j
Ο„1 π‘š
4
π‘š=1
= ΒΌ,
where j = [1,2,3,4]
β€’ P2k = Ο„2k
Ο„1 π‘š
3
π‘š=1
= 1/3
where k = [3,4,5]
β€’ set roulette wheel
using cdf for each
ant.
Ants for r1 Ants for r2
x11 (0,0.25) x21 (0,0.33)
x12 (0.25, 0.50) x22 (0.33,0.67)
x13 (0.50, 0.75) x23 (0.67, 1)
x14 (0.75,1)
β€’ generate random
numbers for each ant
and find out which ant
is selected using
cdf(roulette wheel ).
Ants for x1 Ants for x2
r11 0.609684 x13 r21 0.689113 x23
r12 0.999736 x14 r22 0.706781 x23
r13 0.586537 x13 r23 0.416401 x22
r14 0.177464 x11
β€’ find out
value of
objective
fn for each
selected
set of ants.
possible
set = 4 x 3
=12
Possible sets Ant values
Value of objective fn
(x1
2 + x1x2 + x2)
X13, x23 3,5 49 (worst)
X13, x23 3,5 49 (worst)
X13, x22 3,4 37
X14, x23 4,5 61
X14, x23 4,5 61
X14, x22 4,4 48
X13, x23 3,5 49 (worst)
X13, x23 3,5 49 (worst)
X13, x22 3,4 37
x11, x23 1,5 31
x11, x23 1,5 31
X11, x22 1,4 21 (best)
Ants for x1 Ants for x2
x11 1 x21 3
x12 2 x22 4
x13 3 x23 5
x14 4
Iteration 2
Local pheromone update is an
extension of what we are doing so we
will not consider local updatation.
Q/Lk
Q= constant
Iteration 2
β€’ assume ρ = 0.4 and Q = 2
β€’ Update pheromone for each ant
β€’ Increase pheromone for x11 and x22 as
they are giving best solution.
β€’ Evaporate pheromone for other paths
β€’ Δτ =Q best/worst
β€’ best = 21 (only 1 time so z = 1)
Updated Pheromone
Ants for x1 Ants for x2
x11 1 (1-0.4)x1 + 2x21/49 = 1.457 x21 3 (1-0.4)x1 = 0.6
x12 2 (1-0.4)x1 = 0.6 x22 4 (1-0.4)x1 + 2x21/49 = 1.457
x13 3 (1-0.4)x1 = 0.6 x23 5 (1-0.4)x1 = 0.6
x14 4 (1-0.4)x1 = 0.6
Iteration 2
β€’ Update probability
β€’ P1j = Ο„1j
Ο„1 π‘š
4
π‘š=1
= ?,
where j = [1,2,3,4]
β€’ P2k = Ο„2k
Ο„1 π‘š
3
π‘š=1
= ?
where k = [3,4,5]
Ants for x1 Ants for x2
x11 0.447 x21 0.226
x12 0.184 x22 0.548
x13 0.184 x23 0.226
x14 0.184
Updated Probability
Iteration 2
β€’ set roulette wheel
using cdf for each
ant.
Ants for r1 Ants for r2
x11 (0,0.447) x21 (0,0.226)
x12 (0.447, 0.631) x22 (0.226, 0.774)
x13 (0.631, 0.815) x23 (0.774, 1)
x14 (0.815,1)
Iteration 2
β€’ generate random
numbers for each ant
and find out which ant
is selected using
cdf(roulette wheel ).
Ants for x1 Ants for x2
r11 0.2356 x11 r21 0.386493 x22
r12 0.42656 x11 r22 0.526781 x22
r13 0.58687 x12 r23 0.795401 x23
r14 0.7864 x13
x11 and x22 were
having higher
probability as they
were best solutions
so they are selected
twice
Iteration 2
β€’ Evaluate objective
function value and
repeat the procedure
till convergence
Ant colony opitimization numerical example

More Related Content

What's hot

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
Β 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimizationmidhulavijayan
Β 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationvk1dadhich
Β 
CNN Attention Networks
CNN Attention NetworksCNN Attention Networks
CNN Attention NetworksTaeoh Kim
Β 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationSuman Chatterjee
Β 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated AnnealingJoy Dutta
Β 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
Β 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristicsossein jain
Β 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplicationRespa Peter
Β 
Optimization Simulated Annealing
Optimization Simulated AnnealingOptimization Simulated Annealing
Optimization Simulated AnnealingUday Wankar
Β 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithmUday Wankar
Β 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSOMohamed Talaat
Β 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentationPartha Das
Β 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)gidla vinay
Β 
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...Ajay Kumar
Β 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACOMohamed Talaat
Β 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
Β 
Fuzzy relations
Fuzzy relationsFuzzy relations
Fuzzy relationsnaugariya
Β 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine LearningPavithra Thippanaik
Β 

What's hot (20)

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Β 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimization
Β 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Β 
CNN Attention Networks
CNN Attention NetworksCNN Attention Networks
CNN Attention Networks
Β 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Β 
Simulated Annealing
Simulated AnnealingSimulated Annealing
Simulated Annealing
Β 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
Β 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
Β 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
Β 
Optimization Simulated Annealing
Optimization Simulated AnnealingOptimization Simulated Annealing
Optimization Simulated Annealing
Β 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Β 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
Β 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
Β 
Final project
Final projectFinal project
Final project
Β 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
Β 
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
ADVANCED OPTIMIZATION TECHNIQUES META-HEURISTIC ALGORITHMS FOR ENGINEERING AP...
Β 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
Β 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
Β 
Fuzzy relations
Fuzzy relationsFuzzy relations
Fuzzy relations
Β 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
Β 

Similar to Ant colony opitimization numerical example

Probability Distributions
Probability DistributionsProbability Distributions
Probability DistributionsMunir Ahmad
Β 
Chapter-1-04032021-111422pm (2).pptx
Chapter-1-04032021-111422pm (2).pptxChapter-1-04032021-111422pm (2).pptx
Chapter-1-04032021-111422pm (2).pptxabdulhannan992458
Β 
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...Nish Kala Devi
Β 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONshahzadebaujiti
Β 
Intro to exponents edmodo 2013 14
Intro to exponents edmodo 2013 14Intro to exponents edmodo 2013 14
Intro to exponents edmodo 2013 14shumwayc
Β 
Factors of po lynomials + solving equations
Factors of po lynomials + solving equationsFactors of po lynomials + solving equations
Factors of po lynomials + solving equationsShaun Wilson
Β 
Quantum factorization.pdf
Quantum factorization.pdfQuantum factorization.pdf
Quantum factorization.pdfssuser8b461f
Β 
Introduction to neural networks
Introduction to neural networks Introduction to neural networks
Introduction to neural networks Ahmad Hammoudeh
Β 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equationsRenate Rohrs
Β 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distributionlovemucheca
Β 
Closed intervals
Closed intervalsClosed intervals
Closed intervalsShaun Wilson
Β 
Probability theory poison probability distribution.pptx
Probability theory poison probability distribution.pptxProbability theory poison probability distribution.pptx
Probability theory poison probability distribution.pptxuomi269
Β 
Lecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 btLecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 btbtmathematics
Β 
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-ssusere0a682
Β 
Chapter 4.1 and 4.2
Chapter 4.1 and 4.2Chapter 4.1 and 4.2
Chapter 4.1 and 4.2Kathy Favazza
Β 

Similar to Ant colony opitimization numerical example (17)

Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
Β 
Chapter-1-04032021-111422pm (2).pptx
Chapter-1-04032021-111422pm (2).pptxChapter-1-04032021-111422pm (2).pptx
Chapter-1-04032021-111422pm (2).pptx
Β 
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Dirty quant-shortcut-workshop-handout-inequalities-functions-graphs-coordinat...
Β 
PROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTIONPROBABILITY DISTRIBUTION
PROBABILITY DISTRIBUTION
Β 
Intro to exponents edmodo 2013 14
Intro to exponents edmodo 2013 14Intro to exponents edmodo 2013 14
Intro to exponents edmodo 2013 14
Β 
Factors of po lynomials + solving equations
Factors of po lynomials + solving equationsFactors of po lynomials + solving equations
Factors of po lynomials + solving equations
Β 
Quantum factorization.pdf
Quantum factorization.pdfQuantum factorization.pdf
Quantum factorization.pdf
Β 
Introduction to neural networks
Introduction to neural networks Introduction to neural networks
Introduction to neural networks
Β 
Probability and Statistics - Week 2
Probability and Statistics - Week 2Probability and Statistics - Week 2
Probability and Statistics - Week 2
Β 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
Β 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distribution
Β 
Closed intervals
Closed intervalsClosed intervals
Closed intervals
Β 
Probability theory poison probability distribution.pptx
Probability theory poison probability distribution.pptxProbability theory poison probability distribution.pptx
Probability theory poison probability distribution.pptx
Β 
Lecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 btLecture 7.1 to 7.2 bt
Lecture 7.1 to 7.2 bt
Β 
Probability-1.pptx
Probability-1.pptxProbability-1.pptx
Probability-1.pptx
Β 
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-
ゲーム理論BASIC ζΌ”ηΏ’41 -2δΊΊγ‚Όγƒ­ε’Œγ‚²γƒΌγƒ γ«γŠγ‘γ‚‹γƒžγƒƒγ‚―γ‚ΉγƒŸγƒ‹ε€€-
Β 
Chapter 4.1 and 4.2
Chapter 4.1 and 4.2Chapter 4.1 and 4.2
Chapter 4.1 and 4.2
Β 

More from Harish Kant Soni

Bracing VS shear wall
Bracing VS shear wallBracing VS shear wall
Bracing VS shear wallHarish Kant Soni
Β 
Numerical modelling of concrete for fem softwares
Numerical modelling of concrete for fem softwaresNumerical modelling of concrete for fem softwares
Numerical modelling of concrete for fem softwaresHarish Kant Soni
Β 
Numerical modeling of concrete in Abaqus
Numerical modeling of concrete in Abaqus Numerical modeling of concrete in Abaqus
Numerical modeling of concrete in Abaqus Harish Kant Soni
Β 
Concrete Mix design calculations Indian code
Concrete Mix design calculations Indian codeConcrete Mix design calculations Indian code
Concrete Mix design calculations Indian codeHarish Kant Soni
Β 
Human gait simulation using python
Human gait simulation using pythonHuman gait simulation using python
Human gait simulation using pythonHarish Kant Soni
Β 
Pratt truss optimization using
Pratt truss optimization usingPratt truss optimization using
Pratt truss optimization usingHarish Kant Soni
Β 

More from Harish Kant Soni (6)

Bracing VS shear wall
Bracing VS shear wallBracing VS shear wall
Bracing VS shear wall
Β 
Numerical modelling of concrete for fem softwares
Numerical modelling of concrete for fem softwaresNumerical modelling of concrete for fem softwares
Numerical modelling of concrete for fem softwares
Β 
Numerical modeling of concrete in Abaqus
Numerical modeling of concrete in Abaqus Numerical modeling of concrete in Abaqus
Numerical modeling of concrete in Abaqus
Β 
Concrete Mix design calculations Indian code
Concrete Mix design calculations Indian codeConcrete Mix design calculations Indian code
Concrete Mix design calculations Indian code
Β 
Human gait simulation using python
Human gait simulation using pythonHuman gait simulation using python
Human gait simulation using python
Β 
Pratt truss optimization using
Pratt truss optimization usingPratt truss optimization using
Pratt truss optimization using
Β 

Recently uploaded

Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...amitlee9823
Β 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...priyasharma62062
Β 
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...dipikadinghjn ( Why You Choose Us? ) Escorts
Β 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
Β 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...priyasharma62062
Β 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
Β 
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...dipikadinghjn ( Why You Choose Us? ) Escorts
Β 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
Β 
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort Service
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort ServiceEnjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort Service
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort ServiceDelhi Call girls
Β 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
Β 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Availabledollysharma2066
Β 
Indore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfIndore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfSaviRakhecha1
Β 
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
Β 
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )Pooja Nehwal
Β 
WhatsApp πŸ“ž Call : 9892124323 βœ…Call Girls In Chembur ( Mumbai ) secure service
WhatsApp πŸ“ž Call : 9892124323  βœ…Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp πŸ“ž Call : 9892124323  βœ…Call Girls In Chembur ( Mumbai ) secure service
WhatsApp πŸ“ž Call : 9892124323 βœ…Call Girls In Chembur ( Mumbai ) secure servicePooja Nehwal
Β 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...ssifa0344
Β 
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Call Girls in Nagpur High Profile
Β 

Recently uploaded (20)

Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call πŸ‘— 7737669865 πŸ‘— Top Class Call Girl Service Ban...
Β 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Β 
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar 🌹 9920725232 ( Call Me ) Mumbai ...
Β 
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
Β 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Β 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Β 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
Β 
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul πŸ’§ 7737669865 πŸ’§ by Dindigul Call G...
Β 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
Β 
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort Service
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort ServiceEnjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort Service
Enjoy Night⚑Call Girls Patel Nagar Delhi >ΰΌ’8448380779 Escort Service
Β 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Β 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
Β 
Indore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfIndore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdf
Β 
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
Β 
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )
Vip Call US πŸ“ž 7738631006 βœ…Call Girls In Sakinaka ( Mumbai )
Β 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
Β 
WhatsApp πŸ“ž Call : 9892124323 βœ…Call Girls In Chembur ( Mumbai ) secure service
WhatsApp πŸ“ž Call : 9892124323  βœ…Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp πŸ“ž Call : 9892124323  βœ…Call Girls In Chembur ( Mumbai ) secure service
WhatsApp πŸ“ž Call : 9892124323 βœ…Call Girls In Chembur ( Mumbai ) secure service
Β 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Β 
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Sant Nagar (DELHI) πŸ” >ΰΌ’9953056974 πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Β 

Ant colony opitimization numerical example

  • 1. Ant Colony Optimization Numerical Example By :- Harish Kant Soni Roll No:- 12CE31004 IIT Kharagpur
  • 2. Problem β€’ min (x1 2 + x1x2 + x2) β€’ x1 = [1,2,3,4] β€’ x2= [3,4,5]
  • 3. It’s better to assume same of no ants as no of values. So we take 4 ants for x1 and 3 ants for x2
  • 4. β€’ Each ant is assigned a discrete value. β€’ x1j , j = 1,2,3,4 β€’ x2k , k = 1,2,3 Ants for x1 Ants for x2 x11 1 x21 3 x12 2 x22 4 x13 3 x23 5 x14 4
  • 5.
  • 6. β€’ Assume equal pheromone for each path = 1
  • 7. Iteration=1 β€’ for any ant k the probability of selecting it’s path is given by β€’ P1j = Ο„1j Ο„1 π‘š 4 π‘š=1 = ΒΌ, where j = [1,2,3,4] β€’ P2k = Ο„2k Ο„1 π‘š 3 π‘š=1 = 1/3 where k = [3,4,5]
  • 8.
  • 9. β€’ set roulette wheel using cdf for each ant. Ants for r1 Ants for r2 x11 (0,0.25) x21 (0,0.33) x12 (0.25, 0.50) x22 (0.33,0.67) x13 (0.50, 0.75) x23 (0.67, 1) x14 (0.75,1)
  • 10. β€’ generate random numbers for each ant and find out which ant is selected using cdf(roulette wheel ). Ants for x1 Ants for x2 r11 0.609684 x13 r21 0.689113 x23 r12 0.999736 x14 r22 0.706781 x23 r13 0.586537 x13 r23 0.416401 x22 r14 0.177464 x11
  • 11. β€’ find out value of objective fn for each selected set of ants. possible set = 4 x 3 =12
  • 12. Possible sets Ant values Value of objective fn (x1 2 + x1x2 + x2) X13, x23 3,5 49 (worst) X13, x23 3,5 49 (worst) X13, x22 3,4 37 X14, x23 4,5 61 X14, x23 4,5 61 X14, x22 4,4 48 X13, x23 3,5 49 (worst) X13, x23 3,5 49 (worst) X13, x22 3,4 37 x11, x23 1,5 31 x11, x23 1,5 31 X11, x22 1,4 21 (best) Ants for x1 Ants for x2 x11 1 x21 3 x12 2 x22 4 x13 3 x23 5 x14 4
  • 13. Iteration 2 Local pheromone update is an extension of what we are doing so we will not consider local updatation. Q/Lk Q= constant
  • 14. Iteration 2 β€’ assume ρ = 0.4 and Q = 2 β€’ Update pheromone for each ant β€’ Increase pheromone for x11 and x22 as they are giving best solution. β€’ Evaporate pheromone for other paths β€’ Δτ =Q best/worst β€’ best = 21 (only 1 time so z = 1) Updated Pheromone Ants for x1 Ants for x2 x11 1 (1-0.4)x1 + 2x21/49 = 1.457 x21 3 (1-0.4)x1 = 0.6 x12 2 (1-0.4)x1 = 0.6 x22 4 (1-0.4)x1 + 2x21/49 = 1.457 x13 3 (1-0.4)x1 = 0.6 x23 5 (1-0.4)x1 = 0.6 x14 4 (1-0.4)x1 = 0.6
  • 15. Iteration 2 β€’ Update probability β€’ P1j = Ο„1j Ο„1 π‘š 4 π‘š=1 = ?, where j = [1,2,3,4] β€’ P2k = Ο„2k Ο„1 π‘š 3 π‘š=1 = ? where k = [3,4,5] Ants for x1 Ants for x2 x11 0.447 x21 0.226 x12 0.184 x22 0.548 x13 0.184 x23 0.226 x14 0.184
  • 17. Iteration 2 β€’ set roulette wheel using cdf for each ant. Ants for r1 Ants for r2 x11 (0,0.447) x21 (0,0.226) x12 (0.447, 0.631) x22 (0.226, 0.774) x13 (0.631, 0.815) x23 (0.774, 1) x14 (0.815,1)
  • 18. Iteration 2 β€’ generate random numbers for each ant and find out which ant is selected using cdf(roulette wheel ). Ants for x1 Ants for x2 r11 0.2356 x11 r21 0.386493 x22 r12 0.42656 x11 r22 0.526781 x22 r13 0.58687 x12 r23 0.795401 x23 r14 0.7864 x13 x11 and x22 were having higher probability as they were best solutions so they are selected twice
  • 19. Iteration 2 β€’ Evaluate objective function value and repeat the procedure till convergence