Particle Swarm Optimization Toolbox

Vectorized code of Particle Swarm Optimization
2.3K Downloads
Updated 1 Apr 2014

View License

The most basic code of PSO has been presented here. It is most helpful for people new to coding.
It can be used on any optimization problem. Being a heuristic algorithm it tends to find the global minimum value and as the code has been vectorized the speed has also been increased. The presented files are for unconstrained functions but with the help of penalty function the problem can be easily constrained.
If it works for many users I intend to develop a GUI for PSO as well present the constrained PSO files.
The widely used benchmark functions for checking the functioning of PSO are also added.
The improved PSO file has also been added in which the linearly changing inertial weight value has been considered.
Let me know in the comments if it helps.

Cite As

Bhanu Pratap Singh (2024). Particle Swarm Optimization Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/45991-particle-swarm-optimization-toolbox), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Backtracking Search Optimization Algorithm

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Different benchmark functions for checking PSO's functioning have been added.
Improved PSO file with linearly changing inertial value has been added by the name pso_inertial.m

1.1.0.0

tags were changed for ease.

1.0.0.0