procedure SOCIAL-ONLY PSO (Objective function )
   Initialize particles
   while the stopping criterion is not satisfied do
  for   do
    if     then
      
       if     then
      
       end if
    end if
end for
for     do
    for     do
     
       
  end for
end for
  end while
end procedure
Algorithm 1: Social-only model of PSO.