Research Article

A Free Search Krill Herd Algorithm for Functions Optimization

Algorithm 4

Free search krill herd algorithm.
Begin
    Initialization. Set the generation counter ; set the foraging speed , maximum diffusion speed ,
    and the maximum induced speed ;
      Generate uniformly distributed random population ;
      Opposition-based population initialization
    For   to   do
        For   to   do
        ;
        End For
    End For
      Select the fittest individuals from as initial population.
    Fitness evaluation. Evaluate each krill individual according to its position.
     While the termination criterion is not satisfied or Generation do
      Sort the population/krill from best to worst.
       For   (all krill) do
       Perform the following motion calculation.
          Motion induced by other individuals
          Foraging motion
          Free search operation
          While  
            Take exploration walks
            Modification strategy
          End While
       Update the krill individual position in the search space.
       Evaluate each krill individual according to its new position.
       End For
       Sort the population/krill from best to worst and find the current best.
         .
    End While
        Post-processing the results and visualization.
End