Research Article

A Cuckoo Search Algorithm for Multimodal Optimization

Procedure 1

(1) Define two new temporal vectors and . The vector will hold the results of the iterative
   operations whereas will contain the final memory configuration. The vector is initialized with
   the elements of that have been sorted according to their fitness values, so that the first element
   represents the best one. On other hand, is initialized empty.
(2) Store the best element of the current in .
(3) Calculate the Euclidian distances between and the rest of elements from    ,
   where represents the number of elements in .
(4) Sort the distances according to their magnitude. Therefore, a new index is incorporated to
   each distance , where a indicate the place of after the sorting operation. ( represents the shortest distance).
(5) Calculate the depuration ratio :
   for     to  
   Obtain the element corresponding to the distance
   Compute
      if  ( > and > )
      
    break
    end  if
     if  
     There is only one concentration
     end  if
   end  for
(6) Remove all elements inside from .
(7)  Sort the elements of according to their fitness values.
(8)  Stop, if there are more concentrations, otherwise return to Step 2.