Research Article

A Bat Algorithm with Mutation for UCAV Path Planning

Algorithm 3

Bat algorithm with mutation.
Begin
 Step 1: Initialization. Set the generation counter ; Initialize the population of NP
   bats P randomly and each bat corresponding to a potential solution to the
   given problem; define loudness ; set frequency and the initial velocities ;
   set pulse rate and weighting factor .
 Step 2: Evaluate the quality for each bat in determined by .
 Step 3: While the termination criteria is not satisfied or MaxGeneration do
      Sort the population of bats P from best to worst by order of quality f for each bat;
      for    : NP (all bats) do
        Select uniform randomly
        
        
        
        if (rand ) then
          
        else
          
        end if
        Evaluate the fitness for the offspring , ,
        Select the offspring with the best fitness among the offsprings
          , ,
        if (rand ) then
          ;
        end if
      end for  
       ;
 Step 4: end while
 Step 5: Post-processing the results and visualization;
End.