Research Article

An Effective Hybrid Firefly Algorithm with Harmony Search for Global Numerical Optimization

Algorithm 1

HS method.
Begin
  Step  1. Initialize the HM.
  Step  2. Evaluate the fitness.
  Step  3.  while the halting criteria is not satisfied do
    for    : D  do
      if  rand < HMCR then  // memory consideration
           where  
        if rand < PAR then   // pitch adjustment
          
        endif
      else           // random selection
        
      endif
    endfor d
    Update the HM as   ,  if     (minimization objective)
    Update the best harmony vector
  Step  4. end  while
  Step  5.  Output results.
End.