Research Article

Efficient and Accurate Optimal Linear Phase FIR Filter Design Using Opposition-Based Harmony Search Algorithm

Algorithm 1

HS Algorithm.
Step 1. Set the parameters, HMS, HMCR, PAR, BW, NI and .
Step 2. Initialize the HM and calculate the objective function value for each harmony vector.
Step 3. Improvise the HM filled with new harmony vectors as follows:
     for
     if    then
                      //
       if   then
                   //
       end if
     else
                // 
    end if
     end for
Step 4. Update the HM as  if  .
Step 5. If  is completed, return the best harmony vector in the HM; otherwise go back to Step 3.