SlideShare a Scribd company logo
3
Most read
4
Most read
10
Most read
Particle Swarm
Optimization
Mohamed Talaat
1
Agenda
• What is PSO?
• Basic Idea of PSO.
• PSO Algorithm.
• PSO Parameters.
• GA vs PSO
• Demo
• Advantages of PSO.
• Limitations of PSO.
2
3
What is PSO?
• Inspired from the nature social behavior and dynamic
movements with communications of insects, birds
and fish.
– Steer toward the center
– Match neighbors’ velocity
– Avoid collisions
• Proposed by James Kennedy & Russell Eberhart
(1995)
Neural Networks NN 1 4
Basic Idea Of PSO
5
Basic Idea Of PSO
• Uses a number of agents (particles) that constitute a
swarm moving around in the search space looking for
the best solution.
• Each particle in search space adjusts its “flying”
according to its own flying experience as well as the
flying experience of other particles.
Combines self-experiences with social experiences.
6
Basic Idea Of PSO
• Collection of flying particles (swarm) - Changing
solutions
• Search area - Possible solutions
• Movement towards a promising area to get the global
optimum.
• Each particle keeps track:
– its best solution, personal best, pbest
– the best value of any particle, global best, gbest
7
Basic Idea Of PSO
• Each particle adjusts its travelling speed dynamically
corresponding to the flying experiences of itself and
its colleagues.
• Each particle modifies its position according to:
– Its current position
– Its current velocity
– The distance between its current position and pbest
– The distance between its current position and gbest
PSO Algorithm – Mathematical
Model
PSO Algorithm
1. Create a ‘population’ of agents (particles) uniformly
distributed over X
2. Evaluate each particle’s position according to the objective
function.
3. If a particle’s current position is better than its previous best
position, update it.
4. Determine the best particle (according to the particle’s
previous best positions).
PSO Algorithm
5. Update particles’ velocities:
6. Move particles to their new positions:
7. Go to step 2 until stopping criteria are satisfied
PSO Algorithm
[x*] = PSO()
P = Particle_Initialization();
For i=1 to it_max
For each particle p in P do
fp = f(p);
If fp is better than f(pBest)
            pBest = p;
end
end
gBest = best p in P;
For each particle p in P do
v = v + c1*rand*(pBest – p) + c2*rand*(gBest – p);
p = p + v;
end
end
PSO Parameters
• Number of Particles: usually between 10 and 50
• C1: is the importance of personal best value
• C2: is the importance of neighborhood best value
• Usually C1 + C2 = 4
• If velocity is too low → algorithm too slow
• If velocity is too high → algorithm too unstable
GA vs PSO
• Both algorithms start with a group of a randomly generated
population.
• Both have fitness values to evaluate the population.
• Both update the population and search for the optimum with
random techniques.
• Both systems do not guarantee success.
• PSO does not have genetic operators like crossover and
mutation. Particles update themselves with the internal
velocity.
GA vs PSO
• In GAs, chromosomes share information with each other.
So the whole population moves like a one group towards an
optimal area.
• In PSO, only gBest (or lBest) gives out the information to
others. It is a one -way information sharing mechanism.
• In GAs, the evolution only looks for the best solution.
• In PSO, all the particles tend to converge to the best
solution quickly.
Demo
15
16
Advantage/Disadvantages s of PSO
• Advantages:
• Simple implementation.
• Easily parallelized for concurrent processing.
• Derivative free.
• Very few algorithm parameters.
• Very efficient global search algorithm.
• Disadvantages:
• Memory
• Slow convergence.
Thanks 
17

More Related Content

PPTX
Practical Swarm Optimization (PSO)
PDF
Nature-Inspired Optimization Algorithms
PPT
Artificial bee colony (abc)
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPTX
Particle Swarm Optimization.pptx
ODP
Genetic algorithm ppt
PDF
4-Unconstrained Single Variable Optimization-Methods and Application.pdf
PPTX
علم الإحصاء
Practical Swarm Optimization (PSO)
Nature-Inspired Optimization Algorithms
Artificial bee colony (abc)
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization.pptx
Genetic algorithm ppt
4-Unconstrained Single Variable Optimization-Methods and Application.pdf
علم الإحصاء

What's hot (20)

PPTX
Particle swarm optimization
PDF
Particle Swarm Optimization
PPTX
Particle swarm optimization
PPTX
Particle swarm optimization
PPSX
Particle Swarm optimization
PPTX
Particle Swarm Optimization
PPT
backpropagation in neural networks
PPTX
Particle swarm optimization
PPTX
Particle swarm optimization
PPTX
K-means Clustering
PPTX
Feedforward neural network
PPTX
Artifical Neural Network and its applications
PPT
PSO.ppt
PDF
Dempster Shafer Theory AI CSE 8th Sem
PPTX
Gradient descent method
PPTX
Fuzzy rules and fuzzy reasoning
PPTX
MACHINE LEARNING - GENETIC ALGORITHM
PPTX
Minmax Algorithm In Artificial Intelligence slides
PPTX
Cuckoo search
Particle swarm optimization
Particle Swarm Optimization
Particle swarm optimization
Particle swarm optimization
Particle Swarm optimization
Particle Swarm Optimization
backpropagation in neural networks
Particle swarm optimization
Particle swarm optimization
K-means Clustering
Feedforward neural network
Artifical Neural Network and its applications
PSO.ppt
Dempster Shafer Theory AI CSE 8th Sem
Gradient descent method
Fuzzy rules and fuzzy reasoning
MACHINE LEARNING - GENETIC ALGORITHM
Minmax Algorithm In Artificial Intelligence slides
Cuckoo search
Ad

Similar to Particle Swarm Optimization - PSO (20)

PPTX
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
PPTX
Partical swarm optimization (PSO).pptx
PPTX
PSO__AndryPinto_InesDomingues_LuisRocha_HugoAlves_SusanaCruz.pptx
PPTX
PSO-ACO-Presentation.pptx
PDF
Pso kota baru parahyangan 2017
PPTX
B-PSO-ACO-Presentation .pptx
PPTX
PSO.pptx
PPTX
Particle Swarm Optimization by Rajorshi Mukherjee
PPTX
11-Optimization algorithm with swarm.pptx
PPTX
Particle swarm optimization (PSO) ppt presentation
PPTX
DriP PSO- A fast and inexpensive PSO for drifting problem spaces
PPT
Particle Swarm Optimization Presentation.ppt
PPT
Swarm intelligence pso and aco
DOC
Pso notes
PPTX
Metaheuristics for software testing
PPTX
PSO-ACO-Presentation Particle Swarm Optimization (PSO)
PPTX
Optimization and particle swarm optimization (O & PSO)
PPT
SI and PSO --Machine Learning
PDF
A survey on ant colony clustering papers
PPSX
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
Partical swarm optimization (PSO).pptx
PSO__AndryPinto_InesDomingues_LuisRocha_HugoAlves_SusanaCruz.pptx
PSO-ACO-Presentation.pptx
Pso kota baru parahyangan 2017
B-PSO-ACO-Presentation .pptx
PSO.pptx
Particle Swarm Optimization by Rajorshi Mukherjee
11-Optimization algorithm with swarm.pptx
Particle swarm optimization (PSO) ppt presentation
DriP PSO- A fast and inexpensive PSO for drifting problem spaces
Particle Swarm Optimization Presentation.ppt
Swarm intelligence pso and aco
Pso notes
Metaheuristics for software testing
PSO-ACO-Presentation Particle Swarm Optimization (PSO)
Optimization and particle swarm optimization (O & PSO)
SI and PSO --Machine Learning
A survey on ant colony clustering papers
Ad

More from Mohamed Talaat (7)

PPT
Digital Image Forgery
PPT
Digital Signature
PPT
Ant Colony Optimization - ACO
PPT
Genetic Algorithms - GAs
PPT
Artificial Neural Networks - ANN
PPT
Digital Watermarking
PPT
Data hiding - Steganography
Digital Image Forgery
Digital Signature
Ant Colony Optimization - ACO
Genetic Algorithms - GAs
Artificial Neural Networks - ANN
Digital Watermarking
Data hiding - Steganography

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Tartificialntelligence_presentation.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Machine Learning_overview_presentation.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Mushroom cultivation and it's methods.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Machine learning based COVID-19 study performance prediction
1. Introduction to Computer Programming.pptx
Tartificialntelligence_presentation.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Weekly Chronicles - August'25-Week II
Machine Learning_overview_presentation.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Group 1 Presentation -Planning and Decision Making .pptx
A comparative study of natural language inference in Swahili using monolingua...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Mushroom cultivation and it's methods.pdf
Network Security Unit 5.pdf for BCA BBA.
Heart disease approach using modified random forest and particle swarm optimi...
OMC Textile Division Presentation 2021.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology
Accuracy of neural networks in brain wave diagnosis of schizophrenia

Particle Swarm Optimization - PSO

  • 2. Agenda • What is PSO? • Basic Idea of PSO. • PSO Algorithm. • PSO Parameters. • GA vs PSO • Demo • Advantages of PSO. • Limitations of PSO. 2
  • 3. 3 What is PSO? • Inspired from the nature social behavior and dynamic movements with communications of insects, birds and fish. – Steer toward the center – Match neighbors’ velocity – Avoid collisions • Proposed by James Kennedy & Russell Eberhart (1995)
  • 4. Neural Networks NN 1 4 Basic Idea Of PSO
  • 5. 5 Basic Idea Of PSO • Uses a number of agents (particles) that constitute a swarm moving around in the search space looking for the best solution. • Each particle in search space adjusts its “flying” according to its own flying experience as well as the flying experience of other particles. Combines self-experiences with social experiences.
  • 6. 6 Basic Idea Of PSO • Collection of flying particles (swarm) - Changing solutions • Search area - Possible solutions • Movement towards a promising area to get the global optimum. • Each particle keeps track: – its best solution, personal best, pbest – the best value of any particle, global best, gbest
  • 7. 7 Basic Idea Of PSO • Each particle adjusts its travelling speed dynamically corresponding to the flying experiences of itself and its colleagues. • Each particle modifies its position according to: – Its current position – Its current velocity – The distance between its current position and pbest – The distance between its current position and gbest
  • 8. PSO Algorithm – Mathematical Model
  • 9. PSO Algorithm 1. Create a ‘population’ of agents (particles) uniformly distributed over X 2. Evaluate each particle’s position according to the objective function. 3. If a particle’s current position is better than its previous best position, update it. 4. Determine the best particle (according to the particle’s previous best positions).
  • 10. PSO Algorithm 5. Update particles’ velocities: 6. Move particles to their new positions: 7. Go to step 2 until stopping criteria are satisfied
  • 11. PSO Algorithm [x*] = PSO() P = Particle_Initialization(); For i=1 to it_max For each particle p in P do fp = f(p); If fp is better than f(pBest)             pBest = p; end end gBest = best p in P; For each particle p in P do v = v + c1*rand*(pBest – p) + c2*rand*(gBest – p); p = p + v; end end
  • 12. PSO Parameters • Number of Particles: usually between 10 and 50 • C1: is the importance of personal best value • C2: is the importance of neighborhood best value • Usually C1 + C2 = 4 • If velocity is too low → algorithm too slow • If velocity is too high → algorithm too unstable
  • 13. GA vs PSO • Both algorithms start with a group of a randomly generated population. • Both have fitness values to evaluate the population. • Both update the population and search for the optimum with random techniques. • Both systems do not guarantee success. • PSO does not have genetic operators like crossover and mutation. Particles update themselves with the internal velocity.
  • 14. GA vs PSO • In GAs, chromosomes share information with each other. So the whole population moves like a one group towards an optimal area. • In PSO, only gBest (or lBest) gives out the information to others. It is a one -way information sharing mechanism. • In GAs, the evolution only looks for the best solution. • In PSO, all the particles tend to converge to the best solution quickly.
  • 16. 16 Advantage/Disadvantages s of PSO • Advantages: • Simple implementation. • Easily parallelized for concurrent processing. • Derivative free. • Very few algorithm parameters. • Very efficient global search algorithm. • Disadvantages: • Memory • Slow convergence.