() Begin |
() Initialize Population |
() Repeat |
() Calculate fitness values of particles |
() Modify the best particles in the swarm |
() Choose the best particle |
() Calculate the velocities of particles |
() Update the particle positions |
() Until requirements are met |
() End |