Research Article

A Novel Compact Particle Swarm Optimization for Optimizing Coverage of 3D in Wireless Sensor Network

Algorithm 1

The pseudocode of PSO.
Initialize and of the PSO
Calculate the fitness of each particle
Initialize the , , ,
whiledo
  whiledo
   Update and according to Equations (1) and (2)
   Calculate the fitness of the new particle
   ifthen
    
    
   end if
   ifthen
    
    
   end if
   
  end while
  
end while