Research Article

A Master-Slave Salp Swarm Algorithm Optimizer for Hybrid Energy Storage System Control Strategy in Electric Vehicles

Algorithm 1

SSA Algorithm pseudocode.
Initialize the salp population xi (i=1, 2, ..., n) considering ub and lb
while (end condition is not satisfied)
Calculate the fitness of each search agent (salp)
F=the best search agent
Update c1 by Eq. (iii)
   for each salp (xi)
      if (i= =1)
         Update the position of the leading salp by Eq. (ii) else
         Update the position of the follower salp by Eq. (v) end
   end
   Amend the salps based on the upper and lower bounds of variables
end
return F