Research Article

Lévy-Flight Krill Herd Algorithm

Algorithm 2

Lévy-flight krill herd algorithm.
Begin
  Step : Initialization. Set the generation counter ; initialize the population of NP
     krill individuals randomly and each krill corresponds to a potential solution to
     the given problem; set the foraging speed , the maximum diffusion speed
      , and the maximum induced speed ; set max Lévy flight step size
     and elitism parameter
     KEEP: how many of the best krill to keep from one generation to the next.
  Step : Fitness evaluation. Evaluate each krill individual according to its position.
  Step : While the termination criteria is not satisfied or t < MaxGeneration do
     Sort the population/krill from best to worst.
     Store the KEEP best krill as KEEPKRILL.
     for  : NP (all krill) do
        Perform the following motion calculation.
          Motion induced by the presence of other individuals
          Foraging motion
          Physical diffusion
        Update the krill individual position in the search space by (6).
        Fine-tune by performing LLF operator as shown in Algorithm 1.
        Evaluate each krill individual according to its new position .
      end for
     Replace the KEEP worst krill with the KEEP best krill stored in KEEPKRILL.
     Sort the population/krill from best to worst and find the current best.
      ;
  Step : end while
  Step : Post-processing the results and visualization.
End.