Research Article

Deployment of Wireless Sensor Networks for Oilfield Monitoring by Multiobjective Discrete Binary Particle Swarm Optimization

Algorithm 5

Pseudocode for the best update.
Procedure of pbest update
If   and the new generated solution both are feasible
  If  
    = ;
  Else
   If the new generated solution is feasible while is infeasible
     = ;
   Else
    If   and the new generated solution both are infeasible
     If constraint violation of is smaller than constraint violation of
       = ;
     EndIf
    EndIf
   EndIf
  EndIf
EndIf
EndProcedure