Particle Swarm Optimization Toolbox
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.