Research Article

A Cooperative Harmony Search Algorithm for Function Optimization

Pseudocode 2

Pseudocode for the CCGA.
Initialize parameters of algorithm
for each subpopulation do
 Initialize all the subpoputions randomly
 Evaluate the fitness of each individual
end for
while termination condition is false do
for each subpopulation do
  Using GA operators to generate offsprings
  Evaluate the fitness of each off spring
end for
end while