Tuning swarm dynamics on a notoriously multimodal benchmark to reach the global optimum far faster — and validating it rather than trusting a single lucky run.
The Rastrigin function is a classic optimization trap: a smooth global bowl studded with dozens of regular local minima. Naïve optimizers get stuck in the nearest dip. The task was to make Particle Swarm Optimization escape them reliably — and quickly.
Tuned inertia damping plus a well-chosen population let the swarm converge in 16 iterations instead of 173 — a 90.8% reduction — while still reaching the global optimum. The sweeps showed inertia weight as the dominant lever: too high and the swarm never settles, too low and it stalls in a local minimum.



