Research Article

A Novel Particle Swarm Optimization Algorithm Based on Reinforcement Learning Mechanism for AUV Path Planning

Algorithm 2

RMPSO algorithm.
(1)Initialize: the particles’ positions, velocity (V), the number of particles (P), maximum number of iterations (N), the global optimum (gbest), the individual optimum (pbest (i))
(2)for maximum number of iterations (N)
(3)for all particles (i)
(4)  Update the position and V according to (14)
(5)  Calculate the fitness value of particles F (i) according to (11)
(6)  if (F (i) < pbest (i)) then
(7)   pbest (i) = F (i)
(8)  end if
(9)  if (pbest (i) < gbest) then
(10)   gbest = pbest (i)
(11)  end if
(12)  update ω (i) according to (13)
(13)end for
(14)end for