268 Particle Swarm Optimization
tasks). In the 11th step, the main algorithm loop is started until the termina-
tion criteria are fulfilled. As a termination criterion we can take into account,
for example, the number of generations, the convergence of the algorithm, or
the computational time. In the main algorithm loop, for all particles in swarm
P , we update each j-th element value from the velocity vector V
i
which is
assigned to the particle P
i
(step 15), and we update each j-th element value
from the particle P
i
using values from the previously computed velocity vector
V
i
(step 17). When the particle P
i
is updated, we evaluate the quality of this
particle using the OF (.) function (step 19). Next, in step 20, if the value of
OF (P
i
) is lower than the ...