Research Article

An Adaptive Immune Ant Colony Optimization for Reducing Energy Consumption of Automatic Inspection Path Planning in Industrial Wireless Sensor Networks

Algorithm 1

AIACO algorithm program.
AIACO for Automatic Inspection Path Planning Optimization in IWSNs
Input: generations, M, N.
Output: The shortest inspection path s.
Begin
  Initialize IWSNs.
  Initialize the ant colony and place ants randomly;
  g=1;
  Whileggenerations
   Form =1: M
    Forn =1: N
     Start inspection path;
    End
   End
   Adjust the volatilization factor;
   Update pheromone;
   Calculate the length of the inspection path.
   Clone elite ants;
   Immune operation;
 g=g+1;
  End While
  Output the shortest inspection path;
End