SlideShare a Scribd company logo
1 of 25
Particle Swarm optimisation
Metaheuristic
Particle Swarm optimisation
Tabu Search
Particle Swarm optimisation
Tabu Search is an improvement over basic local search that
attempts to get over local search problems by not being stuck
in a local minima.
allowing the acceptance of non-improving moves, in order to
not be stuck in a locally optimum solution, and in the hope of
finding the global best.
Tabu search also allows us to escape from sub-optimal
solutions by the use of aĀ tabu list.
A tabu list : is a list of possible moves that could be performed
on a solution.
These moves could be swap operations (as in TSP)Ā .
its move is made tabu for a certain number of iterations
When a move is made tabu , it is added to the tabu list with a
certain value called theĀ Tabu Tenure (tabu length).
With each iteration, the tabu tenure is decremented.
Only when the tabu tenure of a certain move is 0, can the
move be performed and accepted.
Particle Swarm optimisation
Intensification/Diversifica
tion
ā€¢Intensification: penalize
solutions far from the current
solution
ā€¢Diversification: penalize
solutions close to the current
solution
Particle Swarm optimisation
Particle Swarm optimisation
Tabu Search: Finding the Minimal Value of
Peaks Function
Particle Swarm optimisation
Particle Swarm optimisation
Particle Swarm optimisation
TRAVELING
SALESMAN
PROBLEMThe Travelling Salesman Problem (TSP) is
an NP-Hard problem. It goes as follows,
given a set of cities, with paths connecting
each city with every other city, we need to
find the shortest path from the starting city,
to every other city and come back to the
starting city in the shortest
distanceĀ withoutĀ visiting any city along the
path more than once.
This problem is easy to state, but hard to
solve .It has been proved that the TSP is
Particle Swarm optimisation
The largestĀ solvedĀ travelingĀ salesman problem,
n 85,900-cityĀ route at 30/01ā€«3ā€102/ā€ā€¬ -
Particle Swarm optimisation
Particle Swarm optimisation
Particle Swarm optimisation
These slides adapted from a presentation
by Maurice.Clerc@WriteMe.com - one of the
main researchers in PSO
PSO invented by Russ Eberhart (engineering
Prof) and James Kennedy (social scientist)
in USA
Explore PSO and its parameters with my app
at http://www.macs.hw.ac.uk/~dwcorne/mypages/apps/pso.html
Cooperation example
Particle Swarm optimisation
Particleā€™s velocity
PSO Algorithm
socialcognitiveInertia)1( ++=+kiv
GBest
Inertia
cognitive
social
PBest
x(k)
x(k+1)
v(k+1)
v(k)
Particle Swarm optimisation
PSO solution update in
2D
Current solution (4, 2)
Particleā€™s best solution (9,
1)
Global best solution (5, 10)
Inertia: v(k)=(-2, 2)
x(k) - Current solution (4, 2)
PBest - Particleā€™s best solution (9, 1)
GBest-Global best solution (5, 10)
GBest
PBest
Particle Swarm optimisation
PSO solution update in
2D
Current solution (4, 2)
Particleā€™s best solution (9,
1)
Global best solution (5, 10)
ļƒ˜ Inertia: v(k)=(-2,2)
ļƒ˜ Cognitive:
PBest-x(k)=(9,1)-(4,2)=(5,-1)
ļƒ˜ Social:
GBest-x(k)=(5,10)-(4,2)=(1,8)
x(k) - Current solution (4, 2)
PBest - Particleā€™s best solution (9, 1)
GBest-Global best solution (5, 10)
GBest
PBest
Particle Swarm optimisation
PSO solution update in
2D
x(k) - Current solution (4, 2)
PBest - Particleā€™s best solution (9, 1)
GBest-Global best solution (5, 10)
ļƒ˜ Inertia: v(k)=(-2,2)
ļƒ˜ Cognitive:
PBest-x(k)=(9,1)-(4,2)=(5,-1)
ļƒ˜ Social:
GBest-x(k)=(5,10)-
(4,2)=(1,8)
v(k+1)=(-2,2)+0.8*(5,-1)
+0.2*(1,8) = (2.2,2.8)
GBest
PBest
v(k+1
)
Particle Swarm optimisation
PSO solution update in
2D
GBest
PBest
x(k+1
)
x(k) - Current solution (4, 2)
PBest - Particleā€™s best solution (9, 1)
GBest-Global best solution (5, 10)
ļƒ˜ Inertia: v(k)=(-2,2)
ļƒ˜ Cognitive:
PBest-x(k)=(9,1)-(4,2)=(5,-1)
ļƒ˜ Social:
GBest-x(k)=(5,10)-
(4,2)=(1,8)
ļƒ˜ v(k+1)=(2.2,2.8)
x(k+1)=x(k)+v(k+1)=
(4,2)+(2.2,2.8)=(6.2,4.8)
Particle Swarm optimisation
Pseudocode
http://www.swarmintelligence.org/tutorials.php
Equation (a)
v[] = c0 *v[]
+ c1 * rand() * (pbest[] - present[])
+ c2 * rand() * (gbest[] - present[])
(in the original method, c0=1, but many
researchers now play with this parameter)
Equation (b)
present[] = present[] + v[]
Particle Swarm optimisation
Parameters
Number of particles (swarmsize)
C1 (importance of personal best)
C2 (importance of neighbourhood best)
Vmax: limit on velocity
Particle Swarm optimisation
Pseudocode
http://www.swarmintelligence.org/tutorials.php
For each particle
Initialize particle
END
Do
For each particle
Calculate fitness value
If the fitness value is better than its peronal best
set current value as the new pBest
End
Choose the particle with the best fitness value of all as gBest
For each particle
Calculate particle velocity according equation (a)
Update particle position according equation (b)
End
While maximum iterations or minimum error criteria is not attained
Particle Swarm optimisation

More Related Content

What's hot

Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimizationmidhulavijayan
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationMahesh Tibrewal
Ā 
Particle Swarm Optimization Matlab code Using 50, 5000 Swarms
Particle Swarm Optimization Matlab code Using 50, 5000 SwarmsParticle Swarm Optimization Matlab code Using 50, 5000 Swarms
Particle Swarm Optimization Matlab code Using 50, 5000 SwarmsRaza Shamsi
Ā 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm OptimizationVikas Kumar Sinha
Ā 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSOMohamed Talaat
Ā 
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
TEXT FEUTURE SELECTION  USING PARTICLE SWARM OPTIMIZATION (PSO)TEXT FEUTURE SELECTION  USING PARTICLE SWARM OPTIMIZATION (PSO)
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)yahye abukar
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationMahyar Mohaghegh
Ā 
Application of particle swarm optimization in 3 dimensional travelling salesm...
Application of particle swarm optimization in 3 dimensional travelling salesm...Application of particle swarm optimization in 3 dimensional travelling salesm...
Application of particle swarm optimization in 3 dimensional travelling salesm...Maad M. Mijwil
Ā 
PSO.ppt
PSO.pptPSO.ppt
PSO.pptgrssieee
Ā 
Pso introduction
Pso introductionPso introduction
Pso introductionrutika12345
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationAbhishek Agrawal
Ā 
Optimization and particle swarm optimization (O & PSO)
Optimization and particle swarm optimization (O & PSO) Optimization and particle swarm optimization (O & PSO)
Optimization and particle swarm optimization (O & PSO) Engr Nosheen Memon
Ā 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applicationsadil raja
Ā 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeRajorshi Mukherjee
Ā 
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization Algorithm
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization AlgorithmA New Multi-Objective Mixed-Discrete Particle Swarm Optimization Algorithm
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization AlgorithmWeiyang Tong
Ā 
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...Aboul Ella Hassanien
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationSuman Chatterjee
Ā 

What's hot (20)

Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimization
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Ā 
Particle Swarm Optimization Matlab code Using 50, 5000 Swarms
Particle Swarm Optimization Matlab code Using 50, 5000 SwarmsParticle Swarm Optimization Matlab code Using 50, 5000 Swarms
Particle Swarm Optimization Matlab code Using 50, 5000 Swarms
Ā 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
Ā 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
Ā 
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
TEXT FEUTURE SELECTION  USING PARTICLE SWARM OPTIMIZATION (PSO)TEXT FEUTURE SELECTION  USING PARTICLE SWARM OPTIMIZATION (PSO)
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Ā 
Application of particle swarm optimization in 3 dimensional travelling salesm...
Application of particle swarm optimization in 3 dimensional travelling salesm...Application of particle swarm optimization in 3 dimensional travelling salesm...
Application of particle swarm optimization in 3 dimensional travelling salesm...
Ā 
Bic pso
Bic psoBic pso
Bic pso
Ā 
PSO.ppt
PSO.pptPSO.ppt
PSO.ppt
Ā 
Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)
Ā 
Pso introduction
Pso introductionPso introduction
Pso introduction
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Ā 
Optimization and particle swarm optimization (O & PSO)
Optimization and particle swarm optimization (O & PSO) Optimization and particle swarm optimization (O & PSO)
Optimization and particle swarm optimization (O & PSO)
Ā 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applications
Ā 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi Mukherjee
Ā 
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization Algorithm
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization AlgorithmA New Multi-Objective Mixed-Discrete Particle Swarm Optimization Algorithm
A New Multi-Objective Mixed-Discrete Particle Swarm Optimization Algorithm
Ā 
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...
PSOk-NN: A Particle Swarm Optimization Approach to Optimize k-Nearest Neighbo...
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Ā 
SI and PSO --Machine Learning
SI and PSO --Machine Learning SI and PSO --Machine Learning
SI and PSO --Machine Learning
Ā 

Viewers also liked

Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Viraj Patil
Ā 
Traveling salesman problem
Traveling salesman problemTraveling salesman problem
Traveling salesman problemJayesh Chauhan
Ā 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemjayatra
Ā 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
Ā 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationJoy Dutta
Ā 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic AlgorithmsKarthik Sankar
Ā 
Solving TSP using Hybrid GACO
Solving TSP using Hybrid GACOSolving TSP using Hybrid GACO
Solving TSP using Hybrid GACOShruti Gandhi
Ā 

Viewers also liked (7)

Traveling salesman problem(tsp)
Traveling salesman problem(tsp)Traveling salesman problem(tsp)
Traveling salesman problem(tsp)
Ā 
Traveling salesman problem
Traveling salesman problemTraveling salesman problem
Traveling salesman problem
Ā 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Ā 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Ā 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Ā 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
Ā 
Solving TSP using Hybrid GACO
Solving TSP using Hybrid GACOSolving TSP using Hybrid GACO
Solving TSP using Hybrid GACO
Ā 

Similar to metaheuristic tabu pso

Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemIRJET Journal
Ā 
MOMDPSO_IDETC_2014_Weiyang
MOMDPSO_IDETC_2014_WeiyangMOMDPSO_IDETC_2014_Weiyang
MOMDPSO_IDETC_2014_WeiyangMDO_Lab
Ā 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
Ā 
modeling.ppt
modeling.pptmodeling.ppt
modeling.pptssuser1d6968
Ā 
Introduction to Max-SAT and Max-SAT Evaluation
Introduction to Max-SAT and Max-SAT EvaluationIntroduction to Max-SAT and Max-SAT Evaluation
Introduction to Max-SAT and Max-SAT EvaluationMasahiro Sakai
Ā 
introduction pso.ppt
introduction pso.pptintroduction pso.ppt
introduction pso.pptmuhammadriza61
Ā 
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATION
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATIONMODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATION
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATIONcscpconf
Ā 
Modified Vortex Search Algorithm for Real Parameter Optimization
Modified Vortex Search Algorithm for Real Parameter Optimization Modified Vortex Search Algorithm for Real Parameter Optimization
Modified Vortex Search Algorithm for Real Parameter Optimization csandit
Ā 
ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxRahulSingh190790
Ā 
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATION
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATIONA MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATION
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATIONijaia
Ā 
The Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network PerspectiveThe Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network Perspectivemustafa sarac
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationanurag singh
Ā 
SP14 CS188 Lecture 2 -- Uninformed Search.pptx
SP14 CS188 Lecture 2 -- Uninformed Search.pptxSP14 CS188 Lecture 2 -- Uninformed Search.pptx
SP14 CS188 Lecture 2 -- Uninformed Search.pptxAnimeGuru1
Ā 
Bounded Model Checking
Bounded Model CheckingBounded Model Checking
Bounded Model CheckingIlham Amezzane
Ā 

Similar to metaheuristic tabu pso (20)

Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Ā 
MOMDPSO_IDETC_2014_Weiyang
MOMDPSO_IDETC_2014_WeiyangMOMDPSO_IDETC_2014_Weiyang
MOMDPSO_IDETC_2014_Weiyang
Ā 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
Ā 
Edge pso
Edge psoEdge pso
Edge pso
Ā 
Pso notes
Pso notesPso notes
Pso notes
Ā 
modeling.ppt
modeling.pptmodeling.ppt
modeling.ppt
Ā 
Introduction to Max-SAT and Max-SAT Evaluation
Introduction to Max-SAT and Max-SAT EvaluationIntroduction to Max-SAT and Max-SAT Evaluation
Introduction to Max-SAT and Max-SAT Evaluation
Ā 
introduction pso.ppt
introduction pso.pptintroduction pso.ppt
introduction pso.ppt
Ā 
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATION
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATIONMODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATION
MODIFIED VORTEX SEARCH ALGORITHM FOR REAL PARAMETER OPTIMIZATION
Ā 
Modified Vortex Search Algorithm for Real Parameter Optimization
Modified Vortex Search Algorithm for Real Parameter Optimization Modified Vortex Search Algorithm for Real Parameter Optimization
Modified Vortex Search Algorithm for Real Parameter Optimization
Ā 
ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptx
Ā 
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATION
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATIONA MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATION
A MODIFIED VORTEX SEARCH ALGORITHM FOR NUMERICAL FUNCTION OPTIMIZATION
Ā 
Recursive algorithms
Recursive algorithmsRecursive algorithms
Recursive algorithms
Ā 
The Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network PerspectiveThe Traveling Salesman Problem: A Neural Network Perspective
The Traveling Salesman Problem: A Neural Network Perspective
Ā 
Optimization Using Evolutionary Computing Techniques
Optimization Using Evolutionary Computing Techniques Optimization Using Evolutionary Computing Techniques
Optimization Using Evolutionary Computing Techniques
Ā 
40120130405025
4012013040502540120130405025
40120130405025
Ā 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Ā 
SP14 CS188 Lecture 2 -- Uninformed Search.pptx
SP14 CS188 Lecture 2 -- Uninformed Search.pptxSP14 CS188 Lecture 2 -- Uninformed Search.pptx
SP14 CS188 Lecture 2 -- Uninformed Search.pptx
Ā 
Bounded Model Checking
Bounded Model CheckingBounded Model Checking
Bounded Model Checking
Ā 
I04105358
I04105358I04105358
I04105358
Ā 

More from heba_ahmad

heba alsayed ahmad_Recomm_#
heba alsayed ahmad_Recomm_#heba alsayed ahmad_Recomm_#
heba alsayed ahmad_Recomm_#heba_ahmad
Ā 
heba alsayed ahmad_Recomm_#2
heba alsayed ahmad_Recomm_#2heba alsayed ahmad_Recomm_#2
heba alsayed ahmad_Recomm_#2heba_ahmad
Ā 
bassel alkhatib recommendation
bassel alkhatib recommendation bassel alkhatib recommendation
bassel alkhatib recommendation heba_ahmad
Ā 
recommendation dr jose
recommendation dr joserecommendation dr jose
recommendation dr joseheba_ahmad
Ā 
recommendation dr.miguel
recommendation dr.miguelrecommendation dr.miguel
recommendation dr.miguelheba_ahmad
Ā 
Line uo,please
Line uo,pleaseLine uo,please
Line uo,pleaseheba_ahmad
Ā 
Data mining
Data miningData mining
Data miningheba_ahmad
Ā 
Introduction to data science intro,ch(1,2,3)
Introduction to data science intro,ch(1,2,3)Introduction to data science intro,ch(1,2,3)
Introduction to data science intro,ch(1,2,3)heba_ahmad
Ā 
Shiny in R
Shiny in RShiny in R
Shiny in Rheba_ahmad
Ā 
&Final presentation
 &Final presentation &Final presentation
&Final presentationheba_ahmad
Ā 
Chapter 18,19
Chapter 18,19Chapter 18,19
Chapter 18,19heba_ahmad
Ā 
Ggplot2 ch2
Ggplot2 ch2Ggplot2 ch2
Ggplot2 ch2heba_ahmad
Ā 
Final presentation
Final presentationFinal presentation
Final presentationheba_ahmad
Ā 

More from heba_ahmad (13)

heba alsayed ahmad_Recomm_#
heba alsayed ahmad_Recomm_#heba alsayed ahmad_Recomm_#
heba alsayed ahmad_Recomm_#
Ā 
heba alsayed ahmad_Recomm_#2
heba alsayed ahmad_Recomm_#2heba alsayed ahmad_Recomm_#2
heba alsayed ahmad_Recomm_#2
Ā 
bassel alkhatib recommendation
bassel alkhatib recommendation bassel alkhatib recommendation
bassel alkhatib recommendation
Ā 
recommendation dr jose
recommendation dr joserecommendation dr jose
recommendation dr jose
Ā 
recommendation dr.miguel
recommendation dr.miguelrecommendation dr.miguel
recommendation dr.miguel
Ā 
Line uo,please
Line uo,pleaseLine uo,please
Line uo,please
Ā 
Data mining
Data miningData mining
Data mining
Ā 
Introduction to data science intro,ch(1,2,3)
Introduction to data science intro,ch(1,2,3)Introduction to data science intro,ch(1,2,3)
Introduction to data science intro,ch(1,2,3)
Ā 
Shiny in R
Shiny in RShiny in R
Shiny in R
Ā 
&Final presentation
 &Final presentation &Final presentation
&Final presentation
Ā 
Chapter 18,19
Chapter 18,19Chapter 18,19
Chapter 18,19
Ā 
Ggplot2 ch2
Ggplot2 ch2Ggplot2 ch2
Ggplot2 ch2
Ā 
Final presentation
Final presentationFinal presentation
Final presentation
Ā 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
Ā 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
Ā 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
Ā 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
Ā 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
Ā 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Ā 
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
Ā 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
Ā 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø9953056974 Low Rate Call Girls In Saket, Delhi NCR
Ā 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
Ā 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Ā 
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šŸ”
Ā 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Ā 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Ā 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
Ā 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
Ā 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)ā€”ā€”ā€”ā€”IMP.OF KSHARA ...
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Ā 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
Ā 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Ā 
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
ā€œOh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Ā 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
Ā 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Ā 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
Ā 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
Ā 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Ā 
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
Ā 

metaheuristic tabu pso

  • 3. Particle Swarm optimisation Tabu Search is an improvement over basic local search that attempts to get over local search problems by not being stuck in a local minima. allowing the acceptance of non-improving moves, in order to not be stuck in a locally optimum solution, and in the hope of finding the global best. Tabu search also allows us to escape from sub-optimal solutions by the use of aĀ tabu list. A tabu list : is a list of possible moves that could be performed on a solution. These moves could be swap operations (as in TSP)Ā . its move is made tabu for a certain number of iterations When a move is made tabu , it is added to the tabu list with a certain value called theĀ Tabu Tenure (tabu length). With each iteration, the tabu tenure is decremented. Only when the tabu tenure of a certain move is 0, can the move be performed and accepted.
  • 4. Particle Swarm optimisation Intensification/Diversifica tion ā€¢Intensification: penalize solutions far from the current solution ā€¢Diversification: penalize solutions close to the current solution
  • 6. Particle Swarm optimisation Tabu Search: Finding the Minimal Value of Peaks Function
  • 9. Particle Swarm optimisation TRAVELING SALESMAN PROBLEMThe Travelling Salesman Problem (TSP) is an NP-Hard problem. It goes as follows, given a set of cities, with paths connecting each city with every other city, we need to find the shortest path from the starting city, to every other city and come back to the starting city in the shortest distanceĀ withoutĀ visiting any city along the path more than once. This problem is easy to state, but hard to solve .It has been proved that the TSP is
  • 10. Particle Swarm optimisation The largestĀ solvedĀ travelingĀ salesman problem, n 85,900-cityĀ route at 30/01ā€«3ā€102/ā€ā€¬ -
  • 14. These slides adapted from a presentation by Maurice.Clerc@WriteMe.com - one of the main researchers in PSO PSO invented by Russ Eberhart (engineering Prof) and James Kennedy (social scientist) in USA
  • 15. Explore PSO and its parameters with my app at http://www.macs.hw.ac.uk/~dwcorne/mypages/apps/pso.html
  • 17. Particle Swarm optimisation Particleā€™s velocity PSO Algorithm socialcognitiveInertia)1( ++=+kiv GBest Inertia cognitive social PBest x(k) x(k+1) v(k+1) v(k)
  • 18. Particle Swarm optimisation PSO solution update in 2D Current solution (4, 2) Particleā€™s best solution (9, 1) Global best solution (5, 10) Inertia: v(k)=(-2, 2) x(k) - Current solution (4, 2) PBest - Particleā€™s best solution (9, 1) GBest-Global best solution (5, 10) GBest PBest
  • 19. Particle Swarm optimisation PSO solution update in 2D Current solution (4, 2) Particleā€™s best solution (9, 1) Global best solution (5, 10) ļƒ˜ Inertia: v(k)=(-2,2) ļƒ˜ Cognitive: PBest-x(k)=(9,1)-(4,2)=(5,-1) ļƒ˜ Social: GBest-x(k)=(5,10)-(4,2)=(1,8) x(k) - Current solution (4, 2) PBest - Particleā€™s best solution (9, 1) GBest-Global best solution (5, 10) GBest PBest
  • 20. Particle Swarm optimisation PSO solution update in 2D x(k) - Current solution (4, 2) PBest - Particleā€™s best solution (9, 1) GBest-Global best solution (5, 10) ļƒ˜ Inertia: v(k)=(-2,2) ļƒ˜ Cognitive: PBest-x(k)=(9,1)-(4,2)=(5,-1) ļƒ˜ Social: GBest-x(k)=(5,10)- (4,2)=(1,8) v(k+1)=(-2,2)+0.8*(5,-1) +0.2*(1,8) = (2.2,2.8) GBest PBest v(k+1 )
  • 21. Particle Swarm optimisation PSO solution update in 2D GBest PBest x(k+1 ) x(k) - Current solution (4, 2) PBest - Particleā€™s best solution (9, 1) GBest-Global best solution (5, 10) ļƒ˜ Inertia: v(k)=(-2,2) ļƒ˜ Cognitive: PBest-x(k)=(9,1)-(4,2)=(5,-1) ļƒ˜ Social: GBest-x(k)=(5,10)- (4,2)=(1,8) ļƒ˜ v(k+1)=(2.2,2.8) x(k+1)=x(k)+v(k+1)= (4,2)+(2.2,2.8)=(6.2,4.8)
  • 22. Particle Swarm optimisation Pseudocode http://www.swarmintelligence.org/tutorials.php Equation (a) v[] = c0 *v[] + c1 * rand() * (pbest[] - present[]) + c2 * rand() * (gbest[] - present[]) (in the original method, c0=1, but many researchers now play with this parameter) Equation (b) present[] = present[] + v[]
  • 23. Particle Swarm optimisation Parameters Number of particles (swarmsize) C1 (importance of personal best) C2 (importance of neighbourhood best) Vmax: limit on velocity
  • 24. Particle Swarm optimisation Pseudocode http://www.swarmintelligence.org/tutorials.php For each particle Initialize particle END Do For each particle Calculate fitness value If the fitness value is better than its peronal best set current value as the new pBest End Choose the particle with the best fitness value of all as gBest For each particle Calculate particle velocity according equation (a) Update particle position according equation (b) End While maximum iterations or minimum error criteria is not attained

Editor's Notes

  1. To illustrate what ā€œcooperationā€ means in PSO, here is a simplistic example. As usually, the big fish is difficult to catch, hidden in the deepest part of the pond. At each time step, each fisherman tells to the other how deep the pond is at his place. At the very begininng, as the depths are quite similar, they both follow their own ways. Now, Fisherman 2 seems to be on a better place, so Fisherman 1 tends to go towards him quite rapidly. Now, the decision is a bit more difficult to make. On the one hand Fisherman 2 is still on a better place, but on the other hand, Fisherman 1ā€™s position is worse than before. So Fisherman 1 comes to a compromise: he still goes towards Fisherman 2, but more slowly than before. As we can see, doing that, he escapes from the local minimum. Of course, this example is a caricatural one, but it presents the main features of a particle in basic PSO: a position, a velocity (or, more precisely an operator which can be applied to a position in order to modify it), the ability to exchange information with its neighbours, the ability to memorize a previous position, and the ability to use information to make a decision. Remember, though, all that as to remain simple. Letā€™s now see more precisely these points.