SlideShare a Scribd company logo
Scientific Research Group in Egypt (SRGE)

Swarm Intelligence (II)
Ant Colony optimization
Dr. Ahmed Fouad Ali
Suez Canal University,
Dept. of Computer Science, Faculty of Computers and informatics
Member of the Scientific Research Group in Egypt

Company

LOGO
Company

LOGO

Scientific Research Group in Egypt
www.egyptscience.net
Company

LOGO

Meta-heuristics techniques
Company

LOGO

Outline
1. Ant colony optimization (ACO)(Main idea)
2. History of ACO
3. ACO parameters definitions
4. Ant colony optimization (ACO)
5. ACO Algorithm

6. Advantage / disadvantage
7. References
Company

LOGO

Swarm intelligence (Main Idea)

•Suppose you and a group of friends
are on a treasure finding mission.
Each one in the group has a metal
detector and can communicate the
signal and current position to the n
nearest neighbors.
•Each person therefore knows
whether one of his neighbors is
nearer to the treasure than him. If this
is the case, you can move closer to
that neighbor. In doing so, your
chances are improved to find the
treasure. Also, the treasure may be
found more quickly than if you were
on your own.
Company

LOGO

Ant colony optimization (Main Idea)

In a series of experiments on a
colony of ants with a choice
between two unequal length paths
leading to a source of
food, biologists have observed
that ants tended to use the
shortest route.

A model explaining this behavior
is as follows:
An ant runs more or less at
random around the colony.

if it discovers a food source, it
returns more or less directly to the
nest, leaving in its path a trail of
pheromone.
Company

LOGO

Ant colony optimization (Main Idea)

These pheromones are attractive,
nearby ants will be inclined to
follow, more or less directly, the
track.
Returning to the colony, these ants
will strengthen the route.

If two routes are possible to reach
the same food source, the shorter
one will be, in the same time,
traveled by more ants than the
long route will.
The short route will be
increasingly enhanced, and the
long route will eventually
disappear, pheromones are
volatile.
Company

LOGO

History of ACO

First proposed by M. Dorigo, 1992.

Heuristic optimization method inspired by
biological systems.
Population based algorithm for solving difficult
combinatorial optimization problems.

Traveling Salesman, vehicle routing, sequential
ordering, graph coloring, routing in communications
networks

Ant behavior is a kind of stochastic distributed
optimization behavior
Company

LOGO

ACO parameters definitions

Stigmergy
a term coined by French
biologist Pierre-Paul Grasse, is
interaction through the
environment.
Two individuals interact
indirectly when one of them
modifies the environment and
the other responds to the new
environment at a later time.
Company

LOGO

ACO parameters definitions cont.

Pheromone Trails
Species lay pheromone trails
traveling from nest, to nest or
possibly in both directions.
Pheromones evaporate.
Pheromones accumulate with
multiple ants using path.
Company

LOGO

Ant colony optimization TSP

1. Initializing the pheromone amounts on each route to a
positive, small random value.

2. A simple transition rule for choosing the next city to visit, is

where Ti j(t) is the pheromone intensity on edge (i, j)
between cities i and j, the k-th ant is denoted by k, α is a
constant, and Ci,k is the set of cities ant k still have to
visit from city i.
Company

LOGO

Ant colony optimization TSP

The transition rule above can be improved by including
local information on the desirability of choosing city j when
currently in city i, i.e.the next city to visit, is

where α and ß are adjustable parameters that control
the weight of pheromone intensity and
Company

LOGO

Ant colony optimization TSP

with dij the Euclidean distance between cities i and j

At the end of each route, Tk, constructed by ant k, the pheromone
intensity Tij on the edges of that route is updated, using

Where
Company

LOGO

Ant colony optimization TSP

The parameter Q has a value of the same order of the length
of the optimal route, Lk(t) is the length of the route
traveled by ant k, and m is the total number of ants.
The constant p ϵ [0,1], is referred to as the forgetting
factor, which models the evaporation over time of
pheromone deposits.
Company

LOGO

ACO Algorithm for TSP.

1. Initialize the pheromone deposits on each edge (i, j) between
cities i and j to small positive random values, i.e. Tij(0) ~
U(0, max).
2. Place all ants k ϵ 1,…, m on the originating city.
3. Let T+ be the shortest trip, and L+ the length of that trip.
4. For t = I to tmax do the following:
For each ant, build the trip Tk (t) by choosing the next city n —
1 times (n is the number of cities), with probability Фij,k(t).
Compute the length of the route, Lk(t), of each ant.
If an improved route is found, update T+ and L+.
Update the pheromone deposits on each edge.
5. Output the shortest route T+.
Company

LOGO

Advantage / disadvantage

Advantage:

•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).
•Has been applied to a wide variety of applications.
Company

LOGO

Advantage / disadvantage

Disadvantage:

•Theoretical analysis is difficult:
Due to sequences of random decisions (not
independent).
Probability distribution changes by iteration.

•Convergence is guaranteed, but time to convergence
uncertain.
•Coding is somewhat complicated, not straightforward
Pheromone “trail” additions/deletions, global updates and
local updates.
Company

LOGO

References

•Computational Intelligence An Introduction
Andries P. Engelbrecht, University of Pretoria South Africa

•Some slides adapted from a presentation
“Ant Colony Optimization. A metaheuristic approach to hard
network optimization problems”.
Particle Swarm Optimization
http://www.particleswarm.info/
http://www.swarmintelligence.org
Company

LOGO

Thank you
Ahmed_fouad@ci.suez.edu.eg
http://www.egyptscience.net

More Related Content

What's hot

Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
قصي نسور
 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
bharatsharma88
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationAbdul Rahman
 
Ant Colony Optimization: Routing
Ant Colony Optimization: RoutingAnt Colony Optimization: Routing
Ant Colony Optimization: RoutingAdrian Wilke
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
Mahmoud El-tayeb
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
Omid Edriss
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
Ahmed Fouad Ali
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
Swetanshmani Shrivastava
 
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
 
PSO
PSOPSO
Swarm intelligence algorithms
Swarm intelligence algorithmsSwarm intelligence algorithms
Swarm intelligence algorithms
Aboul Ella Hassanien
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
Mohamed Talaat
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Joy Dutta
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
anurag singh
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm OptimizationStelios Petrakis
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Medhini Narasimhan
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
QasimRehman
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Suman Chatterjee
 

What's hot (20)

Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
 
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
 
Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)Ant Colony Optimization (ACO)
Ant Colony Optimization (ACO)
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
 
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
 
PSO
PSOPSO
PSO
 
Swarm intelligence algorithms
Swarm intelligence algorithmsSwarm intelligence algorithms
Swarm intelligence algorithms
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
 
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
 

Viewers also liked

Grey wolf optimizer
Grey wolf optimizerGrey wolf optimizer
Grey wolf optimizer
Ahmed Fouad Ali
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
Ahmed Fouad Ali
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
Ahmed Fouad Ali
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commands
Ahmed Fouad Ali
 
Group search optimizer
Group search optimizerGroup search optimizer
Group search optimizer
Ahmed Fouad Ali
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimization
Ahmed Fouad Ali
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
Ahmed Fouad Ali
 
Tabu search
Tabu searchTabu search
Tabu search
Ahmed Fouad Ali
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithm
Ahmed Fouad Ali
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
Ahmed Fouad Ali
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
Ahmed Fouad Ali
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
Ahmed Fouad Ali
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithm
Ahmed Fouad Ali
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
Ahmed Fouad Ali
 
Inteligência de enxames - Cardume (PSO + AFSA)
Inteligência de enxames - Cardume (PSO + AFSA)Inteligência de enxames - Cardume (PSO + AFSA)
Inteligência de enxames - Cardume (PSO + AFSA)
Pedro de Vasconcellos
 
Visualization of high dimensional data set
Visualization of high dimensional data setVisualization of high dimensional data set
Visualization of high dimensional data set
Aboul Ella Hassanien
 
Linear vs. quadratic classifier power point
Linear vs. quadratic classifier power pointLinear vs. quadratic classifier power point
Linear vs. quadratic classifier power point
Alaa Tharwat
 
New Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
New Rough Set Attribute Reduction Algorithm based on Grey Wolf OptimizationNew Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
New Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
Aboul Ella Hassanien
 
Pca ppt
Pca pptPca ppt
Pca ppt
Alaa Tharwat
 

Viewers also liked (20)

Grey wolf optimizer
Grey wolf optimizerGrey wolf optimizer
Grey wolf optimizer
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commands
 
Group search optimizer
Group search optimizerGroup search optimizer
Group search optimizer
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimization
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Tabu search
Tabu searchTabu search
Tabu search
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithm
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithm
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Inteligência de enxames - Cardume (PSO + AFSA)
Inteligência de enxames - Cardume (PSO + AFSA)Inteligência de enxames - Cardume (PSO + AFSA)
Inteligência de enxames - Cardume (PSO + AFSA)
 
Visualization of high dimensional data set
Visualization of high dimensional data setVisualization of high dimensional data set
Visualization of high dimensional data set
 
Linear vs. quadratic classifier power point
Linear vs. quadratic classifier power pointLinear vs. quadratic classifier power point
Linear vs. quadratic classifier power point
 
New Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
New Rough Set Attribute Reduction Algorithm based on Grey Wolf OptimizationNew Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
New Rough Set Attribute Reduction Algorithm based on Grey Wolf Optimization
 
Pca ppt
Pca pptPca ppt
Pca ppt
 

Similar to Ant colony algorithm

antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
nrusinhapadhi
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
Wajahat Hussain
 
acoa
acoaacoa
Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_OptimizationNeha Reddy
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
kamalikanath89
 
An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
IJCI JOURNAL
 
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
Lisa Riley
 
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
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
kamalikanath89
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
vijayalakshmi257551
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
PrasadNagelli
 
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile RobotsChaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
cseij
 
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATIONSWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
Fransiskeran
 
Path Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile RobotPath Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile Robot
ijtsrd
 
53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt
AhmedSalimJAlJawadi
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
pawansher2002
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.ppt
DeveshKhandare
 

Similar to Ant colony algorithm (20)

antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdf
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
acoa
acoaacoa
acoa
 
Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_Optimization
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
Swapnil Shahade
Swapnil  ShahadeSwapnil  Shahade
Swapnil Shahade
 
An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
 
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
An Improved Ant Colony System Algorithm for Solving Shortest Path Network Pro...
 
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
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
222 226
222 226222 226
222 226
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
bic10_ants.ppt
bic10_ants.pptbic10_ants.ppt
bic10_ants.ppt
 
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile RobotsChaotic ANT System Optimization for Path Planning of the Mobile Robots
Chaotic ANT System Optimization for Path Planning of the Mobile Robots
 
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATIONSWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
SWARM INTELLIGENCE FROM NATURAL TO ARTIFICIAL SYSTEMS: ANT COLONY OPTIMIZATION
 
Tsp problem
Tsp problemTsp problem
Tsp problem
 
Path Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile RobotPath Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile Robot
 
53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.ppt
 

More from Ahmed Fouad Ali

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptx
Ahmed Fouad Ali
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimization
Ahmed Fouad Ali
 
Sunflower optimization algorithm
Sunflower optimization algorithmSunflower optimization algorithm
Sunflower optimization algorithm
Ahmed Fouad Ali
 
Crow search algorithm
Crow search algorithmCrow search algorithm
Crow search algorithm
Ahmed Fouad Ali
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
Ahmed Fouad Ali
 
Salp swarm algorithm
Salp swarm algorithmSalp swarm algorithm
Salp swarm algorithm
Ahmed Fouad Ali
 
Grasshopper optimization algorithm
Grasshopper optimization algorithmGrasshopper optimization algorithm
Grasshopper optimization algorithm
Ahmed Fouad Ali
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
Ahmed Fouad Ali
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood search
Ahmed Fouad Ali
 

More from Ahmed Fouad Ali (10)

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptx
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimization
 
Sunflower optimization algorithm
Sunflower optimization algorithmSunflower optimization algorithm
Sunflower optimization algorithm
 
Crow search algorithm
Crow search algorithmCrow search algorithm
Crow search algorithm
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Salp swarm algorithm
Salp swarm algorithmSalp swarm algorithm
Salp swarm algorithm
 
Grasshopper optimization algorithm
Grasshopper optimization algorithmGrasshopper optimization algorithm
Grasshopper optimization algorithm
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood search
 

Recently uploaded

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
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
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
 
"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
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
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
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
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
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

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
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
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
 
"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...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
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 Á...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
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
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 

Ant colony algorithm

  • 1. Scientific Research Group in Egypt (SRGE) Swarm Intelligence (II) Ant Colony optimization Dr. Ahmed Fouad Ali Suez Canal University, Dept. of Computer Science, Faculty of Computers and informatics Member of the Scientific Research Group in Egypt Company LOGO
  • 2. Company LOGO Scientific Research Group in Egypt www.egyptscience.net
  • 4. Company LOGO Outline 1. Ant colony optimization (ACO)(Main idea) 2. History of ACO 3. ACO parameters definitions 4. Ant colony optimization (ACO) 5. ACO Algorithm 6. Advantage / disadvantage 7. References
  • 5. Company LOGO Swarm intelligence (Main Idea) •Suppose you and a group of friends are on a treasure finding mission. Each one in the group has a metal detector and can communicate the signal and current position to the n nearest neighbors. •Each person therefore knows whether one of his neighbors is nearer to the treasure than him. If this is the case, you can move closer to that neighbor. In doing so, your chances are improved to find the treasure. Also, the treasure may be found more quickly than if you were on your own.
  • 6. Company LOGO Ant colony optimization (Main Idea) In a series of experiments on a colony of ants with a choice between two unequal length paths leading to a source of food, biologists have observed that ants tended to use the shortest route. A model explaining this behavior is as follows: An ant runs more or less at random around the colony. if it discovers a food source, it returns more or less directly to the nest, leaving in its path a trail of pheromone.
  • 7. Company LOGO Ant colony optimization (Main Idea) These pheromones are attractive, nearby ants will be inclined to follow, more or less directly, the track. Returning to the colony, these ants will strengthen the route. If two routes are possible to reach the same food source, the shorter one will be, in the same time, traveled by more ants than the long route will. The short route will be increasingly enhanced, and the long route will eventually disappear, pheromones are volatile.
  • 8. Company LOGO History of ACO First proposed by M. Dorigo, 1992. Heuristic optimization method inspired by biological systems. Population based algorithm for solving difficult combinatorial optimization problems. Traveling Salesman, vehicle routing, sequential ordering, graph coloring, routing in communications networks Ant behavior is a kind of stochastic distributed optimization behavior
  • 9. Company LOGO ACO parameters definitions Stigmergy a term coined by French biologist Pierre-Paul Grasse, is interaction through the environment. Two individuals interact indirectly when one of them modifies the environment and the other responds to the new environment at a later time.
  • 10. Company LOGO ACO parameters definitions cont. Pheromone Trails Species lay pheromone trails traveling from nest, to nest or possibly in both directions. Pheromones evaporate. Pheromones accumulate with multiple ants using path.
  • 11. Company LOGO Ant colony optimization TSP 1. Initializing the pheromone amounts on each route to a positive, small random value. 2. A simple transition rule for choosing the next city to visit, is where Ti j(t) is the pheromone intensity on edge (i, j) between cities i and j, the k-th ant is denoted by k, α is a constant, and Ci,k is the set of cities ant k still have to visit from city i.
  • 12. Company LOGO Ant colony optimization TSP The transition rule above can be improved by including local information on the desirability of choosing city j when currently in city i, i.e.the next city to visit, is where α and ß are adjustable parameters that control the weight of pheromone intensity and
  • 13. Company LOGO Ant colony optimization TSP with dij the Euclidean distance between cities i and j At the end of each route, Tk, constructed by ant k, the pheromone intensity Tij on the edges of that route is updated, using Where
  • 14. Company LOGO Ant colony optimization TSP The parameter Q has a value of the same order of the length of the optimal route, Lk(t) is the length of the route traveled by ant k, and m is the total number of ants. The constant p ϵ [0,1], is referred to as the forgetting factor, which models the evaporation over time of pheromone deposits.
  • 15. Company LOGO ACO Algorithm for TSP. 1. Initialize the pheromone deposits on each edge (i, j) between cities i and j to small positive random values, i.e. Tij(0) ~ U(0, max). 2. Place all ants k ϵ 1,…, m on the originating city. 3. Let T+ be the shortest trip, and L+ the length of that trip. 4. For t = I to tmax do the following: For each ant, build the trip Tk (t) by choosing the next city n — 1 times (n is the number of cities), with probability Фij,k(t). Compute the length of the route, Lk(t), of each ant. If an improved route is found, update T+ and L+. Update the pheromone deposits on each edge. 5. Output the shortest route T+.
  • 16. Company LOGO Advantage / disadvantage Advantage: •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). •Has been applied to a wide variety of applications.
  • 17. Company LOGO Advantage / disadvantage Disadvantage: •Theoretical analysis is difficult: Due to sequences of random decisions (not independent). Probability distribution changes by iteration. •Convergence is guaranteed, but time to convergence uncertain. •Coding is somewhat complicated, not straightforward Pheromone “trail” additions/deletions, global updates and local updates.
  • 18. Company LOGO References •Computational Intelligence An Introduction Andries P. Engelbrecht, University of Pretoria South Africa •Some slides adapted from a presentation “Ant Colony Optimization. A metaheuristic approach to hard network optimization problems”. Particle Swarm Optimization http://www.particleswarm.info/ http://www.swarmintelligence.org