Research Article

A Cooperative Harmony Search Algorithm for Function Optimization

Pseudocode 3

Pseudocode for the CHS algorithm.
Initialize the parameters
Divide the decision variables into groups
for each HM do
 Initialize HM randomly
end for
while termination condition is false do
 calculate PAR and bw by using
 Equation (7)
for each HM do
  generate a new harmony
  evaluate the new harmony
end for
end while