• Home
  • Projects
  • Courses
  • Publications
  • Contact
  • Media
  • More
    • Home
    • Projects
    • Courses
    • Publications
    • Contact
    • Media
  • Home
  • Projects
  • Courses
  • Publications
  • Contact
  • Media

Particle Swarm Optimization

The PSO algorithm has been inspired from the flocking behavior of birds in nature.

In this algorithm, each particle is considered to be a solution for a given optimization

problem. It ismade of two vectors: position and velocity. The position vector includes

the values for each of the variables in the problem. If the problem has two parameters,

for instance, the particles will have position vectors with two dimensions. Each

particle will then be able to move in an n-dimensional search space where n is the

number of variables. To update the position of particles, the second vector (velocity)

is considered. This vector defines the magnitude and direction of step size for each

dimension and each particle independently.

Swarm Intelligence

PSO is one of the many swarm intelligence methods out there. In this area, collective behaviours of creatures that lead to problem-solving and intelligence are investigated. 

My Works on PSO

Particle Swarm Optimization code

Binary Particle Swarm Optimization

Particle Swarm Optimization code

My own implementation of PSO in Matlab. This is the code I developed in my  Udemy course. 

Download Matlab code

Particle simulations

Binary Particle Swarm Optimization

Particle Swarm Optimization code

This code includes particle simulations in PSO. This is the file that I used in my PSO video. 

Download Matlab code

Binary Particle Swarm Optimization

Binary Particle Swarm Optimization

Binary Particle Swarm Optimization

My binary version of PSO with a wide range of s-shaped and v-shaped transfer functions. 

Download MATLAB code

Hybrid PSO and GSA

Binary Particle Swarm Optimization

One of my earliest works in the field :) Hybridizing PSO and other algorithms wes so much fun. Still a good are to work on, so feel free to use my code. 

Download Matlab code

Binary version of PSO and GSA

PSO with autonomous groups of particles

This is the binary version of PSOGSA called BPSOGSA. 

Download MATLAB code

PSO with autonomous groups of particles

PSO with autonomous groups of particles

In this work, I divided particles into sub-swarms with different behaviors. 

Download Matlab code

Learn PSO in 20 minutes!

Copyright © 2025 Seyedali Mirjalili - All Rights Reserved.

Powered by

  • COVID-19

This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

Accept