Overcoming Local Minima Through Viscoelastic Fluid-Inspired Swarm Behavior