Expand description
Particle swarm optimization (Kennedy and Eberhart, with Clerc’s constriction coefficients).
See the book entry Stochastic global optimisation.
Structs§
- Particle
Swarm - Global-best particle swarm optimization. Each particle moves with velocity
v ← w v + c₁ r₁ (p_best − x) + c₂ r₂ (g_best − x)(runiform per coordinate), using Clerc and Kennedy’s constriction valuesw = 0.7298,c₁ = c₂ = 1.49618by default. Velocities are capped at the box width and positions clamped into the box (which needs finite bounds). Stops when the best value has improved by less than the tolerance (default 1e-12, relative) forstall_iterationsiterations, or after the maximum (default 2000).