Once the current position is calculated, the particle directs itself towards a new position.
A schematic representation of the algorithm is shown below:
• Generate a family of N random solutions (particles).
• Search for the best particle.
• REPEAT the following block until the condition terminates:
Calculate the value of ! given by Eq. (11).
LOOP i = 1, . . . , N:
BEGIN
Calculate the value of the objective function for particle i .
IF particle i gives a better value for the objective function, let particle i be the best particle.
Calculate the new velocity for particle i using Eq. (7).
Calculate the new position for particle i using Eq. (6).
END
•