Particle Swarm Optimization

version (8.01 KB) by Yan Ou
[xMin,yMin] = pso(fun,np,lb,ub);


Updated 24 Dec 2013

View License

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 (2022). Particle Swarm Optimization (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!