Initialize one-dimensional PSO: ,
Create
While stop criteria not met do
  for each subswarm   do
      for each particle   do
        if fitness( )) > fitness( ))
           then
        if fitness( )) > fitness( ))
           then  
   end for
   for each do
     
         
   
Algorithm 1: Pseudocode for cooperative PSO.