Particle Swarm Optimization

[xMin,yMin] = pso(fun,np,lb,ub);

You are now following this Submission

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 (2026). Particle Swarm Optimization (https://www.mathworks.com/matlabcentral/fileexchange/41708-particle-swarm-optimization), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Multi-objective RIME Algorithm (MORIME)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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