Particle Swarm Optimization (level 0) and Steepest Descent Algorithms @MathDoctorMitchell
Particle Swarm Optimization (level 0) and Steepest Descent Algorithms  @MathDoctorMitchell
Uploaded July 2025 | Updated September 2026, 9 hours ago
This animation, created using MATLAB, illustrates (roughly) the Particle Swarm Algorithm (PSO) vs the Steepest Descent Algorithm. The PSO is a useful tool for minimizing a cost (or objective) function by evaluating the function at the locations in red and storing the optimal values (blue) at that iteration.

The steepest descent also uses locations as particles but has each particle move in the direction of the negative gradient (downhill). This gradient is approximated by a center difference formula so that the user does not have to manually compute partial derivatives.

The test case shown here has 100 particles and is minimizing the "peaks" function given by MATLAB.
Particle Swarm Optimization (level 0) and Steepest Descent AlgorithmsIntroduce the dejong5 Function (Optimization Algorithms)What is a Function of 2 Variables? Slanted Plane ExampleParticle Swarm Optimization - Large Inertial CoefficientSharks 90 Eat Minnows 10Stretched parabolic mirror #mathematicsFractals Produced by Varying p on the Chaos Game with 6 VerticesHyperbolic mirror rotating about focal point. #mathematicsModes of a Circular Membrane - Combined PairsChase Favorite Fish in 3D 50 Fish bumping into each otherSwarming Behaviors - Fixed Velocity and Proximity MatrixParticle Swarm Optimization - Personal greater than Social
Jonathan Mitchell |

Particle Swarm Optimization (level 0) and Steepest Descent Algorithms

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER