Research Article

The Characteristics of Metaheuristic Method in Selection of Path Pairs on Multicriteria Ad Hoc Networks

Algorithm 3

Algorithm of PSO.
Random initialization of the whole swarm
Repeat
 Evaluate fitness
For all particles
  Update velocities
  Move to the new position
  Selection best position
  Update velocities and position
EndFor
Until stopping criteria