SlideShare a Scribd company logo
1 of 19
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 optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationUnnitaDas
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony OptimizationPratik Poddar
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentationPartha Das
 
Optimization by Ant Colony Method
Optimization by Ant Colony MethodOptimization by Ant Colony Method
Optimization by Ant Colony MethodUday Wankar
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACOMohamed Talaat
 
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 Applicationsadil raja
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)gidla vinay
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSOMohamed Talaat
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Soumen Santra
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationJoy Dutta
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization pptAnuja Joshi
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsMustafa Salam
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimizationmidhulavijayan
 
Jyotishkar dey roll 36.(swarm intelligence)
Jyotishkar dey roll  36.(swarm intelligence)Jyotishkar dey roll  36.(swarm intelligence)
Jyotishkar dey roll 36.(swarm intelligence)Jyotishkar Dey
 

What's hot (20)

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
 
Ant Colony Optimization presentation
Ant Colony Optimization presentationAnt Colony Optimization presentation
Ant Colony Optimization presentation
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Optimization by Ant Colony Method
Optimization by Ant Colony MethodOptimization by Ant Colony Method
Optimization by Ant Colony Method
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
 
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
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
 
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimization
 
Jyotishkar dey roll 36.(swarm intelligence)
Jyotishkar dey roll  36.(swarm intelligence)Jyotishkar dey roll  36.(swarm intelligence)
Jyotishkar dey roll 36.(swarm intelligence)
 

Viewers also liked

Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization Ahmed Fouad Ali
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithmAhmed Fouad Ali
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimizationAhmed Fouad Ali
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commandsAhmed Fouad Ali
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimizationAhmed Fouad Ali
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithmAhmed Fouad Ali
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmAhmed Fouad Ali
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithmAhmed Fouad Ali
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithmAhmed 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 setAboul Ella Hassanien
 
Linear vs. quadratic classifier power point
Linear vs. quadratic classifier power pointLinear vs. quadratic classifier power point
Linear vs. quadratic classifier power pointAlaa 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 OptimizationAboul Ella Hassanien
 

Viewers also liked (20)

Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
 
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
 

Similar to Ant colony algorithm

antcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfantcolonyoptimization-130619020831-phpapp01.pdf
antcolonyoptimization-130619020831-phpapp01.pdfnrusinhapadhi
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problemWajahat Hussain
 
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 optimizationkamalikanath89
 
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 onIJCI 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.pptxlwz614595250
 
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 Robotscseij
 
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 OPTIMIZATIONFransiskeran
 
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 Robotijtsrd
 
53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.ppt53564379-Ant-Colony-Optimization.ppt
53564379-Ant-Colony-Optimization.pptAhmedSalimJAlJawadi
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxpawansher2002
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptDeveshKhandare
 
Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Borseshweta
 

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
 
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
 
Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07
 

More from Ahmed Fouad Ali

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptxAhmed Fouad Ali
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimizationAhmed Fouad Ali
 
Sunflower optimization algorithm
Sunflower optimization algorithmSunflower optimization algorithm
Sunflower optimization algorithmAhmed Fouad Ali
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithmAhmed Fouad Ali
 
Grasshopper optimization algorithm
Grasshopper optimization algorithmGrasshopper optimization algorithm
Grasshopper optimization algorithmAhmed Fouad Ali
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithmAhmed Fouad Ali
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood searchAhmed 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

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 

Recently uploaded (20)

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 

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