File Exchange

## A simple implementation of Particle Swarm Optimization (PSO) Algorithm

version 1.0.0.0 (2.86 KB) by Seyedali Mirjalili

### Seyedali Mirjalili (view profile)

A function to solve optimization problems using the Particle Swarm Optimization (PSO) Algorithm

Updated 22 May 2018

This submission includes a simple implementation of the Particle Swarm Optimization (PSO) in Matlab. A function has been designed that show you qualitative and quantitative results of PSO.
I have a number of relevant courses in this area. You can enrol via the following links with 95% discount:

A course on “Optimization Problems and Algorithms: how to understand, formulation, and solve optimization problems”:
https://www.udemy.com/optimisation/?couponCode=MATHWORKSREF

“Introduction to Genetic Algorithms: Theory and Applications”
https://www.udemy.com/geneticalgorithm/?couponCode=MATHWORKSREF

### Cite As

Seyedali Mirjalili (2020). A simple implementation of Particle Swarm Optimization (PSO) Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/67429-a-simple-implementation-of-particle-swarm-optimization-pso-algorithm), MATLAB Central File Exchange. Retrieved .

Reham Al Khodari

### Reham Al Khodari (view profile)

Abolfazl Nejatian

Marlon Patino

### Marlon Patino (view profile)

I use the algorithm to solve radar localization problem, only change the objetive function and run very well.

Reethesh CM

### Reethesh CM (view profile)

Seyedali Mirjalili

### Seyedali Mirjalili (view profile)

Did you manage to fix the issue?

priya Kashyap

### priya Kashyap (view profile)

I,m getting error in this step....
fileName = ['Result after iteration # ' , num2str(t)];
save( fileName)

Seyedali Mirjalili

### Seyedali Mirjalili (view profile)

Hi David, I do not have the code of QPSO.

David Franco

### David Franco (view profile)

Dear professor, do you have any Quantum-behaved Particle Swarm Optimization code? Thanks in advance!

eric githua

### eric githua (view profile)

##### MATLAB Release Compatibility
Created with R2016b
Compatible with any release
##### Platform Compatibility
Windows macOS Linux