fun: function handle (y = fun(x), x is column vector)
np: number of particles
lb, ub: lb<x<ub
xMin: yMin = fun(xMin)
yMin: minimum value of the cost function fun
pso finds the global minimum for a constraint function (convex or non-con) with multiple variables.
Cite As
Yan Ou (2024). Particle Swarm Optimization (https://www.mathworks.com/matlabcentral/fileexchange/41708-particle-swarm-optimization), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Multi-objective RIME Algorithm (MORIME)
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.
Version | Published | Release Notes | |
---|---|---|---|
1.13.0.0 | update |
||
1.12.0.0 | update stop criteria |
||
1.11.0.0 | add warm start |
||
1.10.0.0 | update |
||
1.9.0.0 | update pso |
||
1.8.0.0 | Add demo file |
||
1.7.0.0 | update |
||
1.4.0.0 | updated version |
||
1.3.0.0 | add screen shot and summary |
||
1.1.0.0 | change the summary part to make user immediately understand the usage of function |
||
1.0.0.0 |