File Exchange

image thumbnail

A simple implementation of Particle Swarm Optimization (PSO) Algorithm

version (2.86 KB) by Seyedali Mirjalili
A function to solve optimization problems using the Particle Swarm Optimization (PSO) Algorithm


Updated 22 May 2018

View License

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”:

“Introduction to Genetic Algorithms: Theory and Applications”

Cite As

Seyedali Mirjalili (2020). A simple implementation of Particle Swarm Optimization (PSO) Algorithm (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

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

Reethesh CM

Did you manage to fix the issue?

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

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

David Franco

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

eric githua

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