SlideShare a Scribd company logo
3
Most read
7
Most read
9
Most read
Department of Mechanical and Material Engineering
Practical Swarm Optimization (PSO)
Goal of Optimization
Find values of the variables that minimize or maximize the objective
function while satisfying the constraints.
.
Need for optimization
Choose design variables
Formulate constraints
Formulate objective function
Set up variable bounds
Select an optimization algorithm
Obtain solution(s)
Flowchart of Optimal Design Procedure
Particle Swarm Optimization
Swarm Intelligence (SI)
• SI is artificial intelligence, based on the collective behavior of decentralized, self-
organized systems.
• The expression was introduced by Gerardo Beni and Jing Wang in 1989, in the
context of cellular robotic systems.
• SI systems are typically made up of a population of simple agents interacting
locally with one another and with their environment.
• Natural examples of SI include ant colonies, bird flocking, animal herding, bacterial
growth, and fish schooling.
Particle Swarm Optimization
Some SI Application
• U.S. military is investigating swarm techniques for controlling unmanned vehicles.
• NASA is investigating the use of swarm technology for planetary mapping.
Particle Swarm Optimization
• The PSO algorithm was first described in 1995 by James Kennedy and Russell C.
Eberhart inspired by social behavior of bird flocking or fish schooling.
• PSO is an artificial intelligence (AI) technique that can be used to find approximate
solutions to extremely difficult or impossible numeric maximization and minimization
problems.
• Hypotheses are plotted in this space and seeded with an initial velocity, as well as a
communication channel between the particles.
• Simple algorithm, easy to implement and few parameters to adjust mainly the velocity.
Particle Swarm Optimization
How it works:
• PSO is initialized with a group of random particles (solutions) and then searches
for optimal by updating generations.
• Particles move through the solution space, and are evaluated according to some
fitness criterion after each time step. In every iteration, each particle is updated by
following two "best" values.
• The first one is the best solution (fitness) it has achieved so far (the fitness value is
also stored). This value is called pbest.
Particle Swarm Optimization
How it works:
• Another "best" value that is tracked by the particle swarm optimizer is the best
value obtained so far by any particle in the population. This second best value is a
global best and called gbest.
• When a particle takes part of the population as its topological neighbors, the
second best value is a local best and is called lbest. Neighborhood bests allow
parallel exploration of the search space and reduce the susceptibility of PSO
to falling into local minima, but slow down convergence speed.
Particle Swarm Optimization
Each particle tries to modify its current position and velocity according to the distance between its
current position and pbest, and the distance between its current position and gbest.
2
1( ) * ( CurrentPosition ) 2( ) * ( CurrentPositionn n1 1 best,n best,n
)randv v c rand p c gnn
Current Position[n+1] = Current Position [n] + v[n+1]
current position[n+1]: position of particle at n+1th
iteration
current position[n]: position of particle at nth iteration
v[n+1]: particle velocity at n+1th iteration
vn+1: Velocity of particle at n+1 th iteration
Vn : Velocity of particle at nth iteration
c1 : acceleration factor related to gbest
c2 : acceleration factor related to lbest
rand1( ): random number between 0 and 1
rand2( ): random number between 0 and 1
gbest: gbest position of swarm
pbest: pbest position of particle
Particle Swarm Optimization
Algorithm
For each particle
Initialize particle with feasible random number
End
Do
For each particle
Calculate the fitness value
If the fitness value is better than the best fitness value (pbest) in history
Set current value as the new pbest
End
Choose the particle with the best fitness value of all the particles as the gbest
For each particle
Calculate particle velocity according to velocity update equation
Update particle position according to position update equation
End
While maximum iterations or minimum error criteria is not attained
Particle Swarm Optimization
Swarm Topology
• In PSO, there have been two basic topologies used in the literature
I4
I0
I1
I2I3
I4
I0
I1
I2I3
Star Topology (global neighborhood)Ring Topology (neighborhood of 3)
Particle Swarm Optimization
Variant of PSO
.
The Basic Variant of PSO
PSO Basic Variant Function Advantages Disadvantages
Velocity Clamping (VC)
Control the global exploration of
the particle.
Reduces the size of the step
velocity, so that the particles remain
in the search area, but it cannot
change the search direction of the
particle
VC reduces the size of the step
velocity so it will control the
movement of the particle
If all the velocity becomes equal to
the particle will continue to
conduct searches within a
hypercube and will probably remain
in the optima but will not converge
in the local area.
Inertia Weight
Controls the momentum of the
particle by weighing the
contribution of the previous
velocity,
A larger inertia weight in the end
of search will foster the
convergence ability.
Achieve optimality convergence
strongly influenced by the inertia
weight
Constriction Coefficient
To ensure the stable convergence
of the PSO algorithm [21]
Similar with inertia weight
when the algorithm converges,
the fixed values of the parameters
might cause the unnecessary
fluctuation of particles
Synchronous and
Asynchronous Updates
Optimization in parallel processing Improved convergence rate
Higher throughput:
More sophisticated finite element
formulations
Higher accuracy (mesh densities)
Particle Swarm Optimization
in Summary
The process of PSO algorithm in finding optimal values follows the work of an animal society
which has no leader.
Particle swarm optimization consists of a swarm of particles, where particle represent a
potential solution (better condition).
Particle will move through a multidimensional search space to find the best position in that
space (the best position may possible to the maximum or minimum values).
Question and Answer

More Related Content

PPTX
Particle swarm optimization
PPTX
Particle swarm optimization
PPT
Particle Swarm Optimization - PSO
PPSX
Particle Swarm optimization
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPTX
Particle swarm optimization
PDF
Particle Swarm Optimization
Particle swarm optimization
Particle swarm optimization
Particle Swarm Optimization - PSO
Particle Swarm optimization
Particle Swarm Optimization: The Algorithm and Its Applications
Particle swarm optimization
Particle Swarm Optimization

What's hot (20)

PDF
Genetic Algorithms
PPTX
Feedforward neural network
PPTX
Particle swarm optimization
PDF
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
PPT
Genetic Algorithms - Artificial Intelligence
PDF
Metaheuristic Algorithms: A Critical Analysis
PPTX
Artificial neural network
PPTX
Activation function
ODP
Genetic algorithm ppt
PPTX
Soft computing
PPTX
Ant colony optimization
PDF
RM 701 Genetic Algorithm and Fuzzy Logic lecture
PPTX
Perceptron & Neural Networks
PPTX
Simulated Annealing
PPTX
Flowchart of GA
PDF
Genetic Algorithms
PDF
Nature-Inspired Optimization Algorithms
PDF
Artificial Neural Networks Lect3: Neural Network Learning rules
PPSX
Perceptron (neural network)
Genetic Algorithms
Feedforward neural network
Particle swarm optimization
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Genetic Algorithms - Artificial Intelligence
Metaheuristic Algorithms: A Critical Analysis
Artificial neural network
Activation function
Genetic algorithm ppt
Soft computing
Ant colony optimization
RM 701 Genetic Algorithm and Fuzzy Logic lecture
Perceptron & Neural Networks
Simulated Annealing
Flowchart of GA
Genetic Algorithms
Nature-Inspired Optimization Algorithms
Artificial Neural Networks Lect3: Neural Network Learning rules
Perceptron (neural network)
Ad

Viewers also liked (7)

PPTX
Swarm Intelligence - An Introduction
PPTX
Particle Swarm Optimization by Rajorshi Mukherjee
PDF
Kilobot Formation Control
PDF
How To Make Multi-Robots Formation Control System
PPT
Swarm ROBOTICS
PPTX
Robotics project ppt
Swarm Intelligence - An Introduction
Particle Swarm Optimization by Rajorshi Mukherjee
Kilobot Formation Control
How To Make Multi-Robots Formation Control System
Swarm ROBOTICS
Robotics project ppt
Ad

Similar to Practical Swarm Optimization (PSO) (20)

PPT
SI and PSO --Machine Learning
PPTX
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
PPSX
PPTX
Optimization and particle swarm optimization (O & PSO)
PPTX
Particle swarm optimization (PSO) ppt presentation
DOC
Pso notes
PPT
Bic pso
PPT
introduction pso.ppt
PPTX
Particle Swarm Optimization
PPTX
Soft computing
PPTX
PSO-ACO-Presentation Particle Swarm Optimization (PSO)
PPT
Particle Swarm Optimization Presentation.ppt
PDF
PPTX
Optimization Using Evolutionary Computing Techniques
PPTX
Particle swarm optimization
PDF
IRJET- A Particle Swarm Optimization Algorithm for Total Cost Minimization in...
PPT
Swarm intelligence pso and aco
PPTX
Partical swarm optimization (PSO).pptx
PDF
MARKOV CHAIN AND ADAPTIVE PARAMETER SELECTION ON PARTICLE SWARM OPTIMIZER
PDF
Comparison Between PSO and HPSO In Image Steganography
SI and PSO --Machine Learning
TEXT FEUTURE SELECTION USING PARTICLE SWARM OPTIMIZATION (PSO)
Optimization and particle swarm optimization (O & PSO)
Particle swarm optimization (PSO) ppt presentation
Pso notes
Bic pso
introduction pso.ppt
Particle Swarm Optimization
Soft computing
PSO-ACO-Presentation Particle Swarm Optimization (PSO)
Particle Swarm Optimization Presentation.ppt
Optimization Using Evolutionary Computing Techniques
Particle swarm optimization
IRJET- A Particle Swarm Optimization Algorithm for Total Cost Minimization in...
Swarm intelligence pso and aco
Partical swarm optimization (PSO).pptx
MARKOV CHAIN AND ADAPTIVE PARAMETER SELECTION ON PARTICLE SWARM OPTIMIZER
Comparison Between PSO and HPSO In Image Steganography

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Dropbox Q2 2025 Financial Results & Investor Presentation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx

Practical Swarm Optimization (PSO)

  • 1. Department of Mechanical and Material Engineering Practical Swarm Optimization (PSO)
  • 2. Goal of Optimization Find values of the variables that minimize or maximize the objective function while satisfying the constraints.
  • 3. . Need for optimization Choose design variables Formulate constraints Formulate objective function Set up variable bounds Select an optimization algorithm Obtain solution(s) Flowchart of Optimal Design Procedure
  • 4. Particle Swarm Optimization Swarm Intelligence (SI) • SI is artificial intelligence, based on the collective behavior of decentralized, self- organized systems. • The expression was introduced by Gerardo Beni and Jing Wang in 1989, in the context of cellular robotic systems. • SI systems are typically made up of a population of simple agents interacting locally with one another and with their environment. • Natural examples of SI include ant colonies, bird flocking, animal herding, bacterial growth, and fish schooling.
  • 5. Particle Swarm Optimization Some SI Application • U.S. military is investigating swarm techniques for controlling unmanned vehicles. • NASA is investigating the use of swarm technology for planetary mapping.
  • 6. Particle Swarm Optimization • The PSO algorithm was first described in 1995 by James Kennedy and Russell C. Eberhart inspired by social behavior of bird flocking or fish schooling. • PSO is an artificial intelligence (AI) technique that can be used to find approximate solutions to extremely difficult or impossible numeric maximization and minimization problems. • Hypotheses are plotted in this space and seeded with an initial velocity, as well as a communication channel between the particles. • Simple algorithm, easy to implement and few parameters to adjust mainly the velocity.
  • 7. Particle Swarm Optimization How it works: • PSO is initialized with a group of random particles (solutions) and then searches for optimal by updating generations. • Particles move through the solution space, and are evaluated according to some fitness criterion after each time step. In every iteration, each particle is updated by following two "best" values. • The first one is the best solution (fitness) it has achieved so far (the fitness value is also stored). This value is called pbest.
  • 8. Particle Swarm Optimization How it works: • Another "best" value that is tracked by the particle swarm optimizer is the best value obtained so far by any particle in the population. This second best value is a global best and called gbest. • When a particle takes part of the population as its topological neighbors, the second best value is a local best and is called lbest. Neighborhood bests allow parallel exploration of the search space and reduce the susceptibility of PSO to falling into local minima, but slow down convergence speed.
  • 9. Particle Swarm Optimization Each particle tries to modify its current position and velocity according to the distance between its current position and pbest, and the distance between its current position and gbest. 2 1( ) * ( CurrentPosition ) 2( ) * ( CurrentPositionn n1 1 best,n best,n )randv v c rand p c gnn Current Position[n+1] = Current Position [n] + v[n+1] current position[n+1]: position of particle at n+1th iteration current position[n]: position of particle at nth iteration v[n+1]: particle velocity at n+1th iteration vn+1: Velocity of particle at n+1 th iteration Vn : Velocity of particle at nth iteration c1 : acceleration factor related to gbest c2 : acceleration factor related to lbest rand1( ): random number between 0 and 1 rand2( ): random number between 0 and 1 gbest: gbest position of swarm pbest: pbest position of particle
  • 10. Particle Swarm Optimization Algorithm For each particle Initialize particle with feasible random number End Do For each particle Calculate the fitness value If the fitness value is better than the best fitness value (pbest) in history Set current value as the new pbest End Choose the particle with the best fitness value of all the particles as the gbest For each particle Calculate particle velocity according to velocity update equation Update particle position according to position update equation End While maximum iterations or minimum error criteria is not attained
  • 11. Particle Swarm Optimization Swarm Topology • In PSO, there have been two basic topologies used in the literature I4 I0 I1 I2I3 I4 I0 I1 I2I3 Star Topology (global neighborhood)Ring Topology (neighborhood of 3)
  • 13. The Basic Variant of PSO PSO Basic Variant Function Advantages Disadvantages Velocity Clamping (VC) Control the global exploration of the particle. Reduces the size of the step velocity, so that the particles remain in the search area, but it cannot change the search direction of the particle VC reduces the size of the step velocity so it will control the movement of the particle If all the velocity becomes equal to the particle will continue to conduct searches within a hypercube and will probably remain in the optima but will not converge in the local area. Inertia Weight Controls the momentum of the particle by weighing the contribution of the previous velocity, A larger inertia weight in the end of search will foster the convergence ability. Achieve optimality convergence strongly influenced by the inertia weight Constriction Coefficient To ensure the stable convergence of the PSO algorithm [21] Similar with inertia weight when the algorithm converges, the fixed values of the parameters might cause the unnecessary fluctuation of particles Synchronous and Asynchronous Updates Optimization in parallel processing Improved convergence rate Higher throughput: More sophisticated finite element formulations Higher accuracy (mesh densities)
  • 14. Particle Swarm Optimization in Summary The process of PSO algorithm in finding optimal values follows the work of an animal society which has no leader. Particle swarm optimization consists of a swarm of particles, where particle represent a potential solution (better condition). Particle will move through a multidimensional search space to find the best position in that space (the best position may possible to the maximum or minimum values).