Algorithm 2 Pseudo code of the HEHO algorithm |
Initialization. Generate the individuals in population; divide population into n clans; calculate fitness for each individual; set generation counter , maximum generation , and the initial value of the parameter |
while
do
|
Arrange all solutions according to their fitness |
for all clans
do
|
for all solution j in the clan
do
|
Update and generate using Equation (10) |
Select and obtain better solution between and
|
Update and generate using Equation (11) |
Select and retain better solution between and
|
end for
|
end for
|
for all clans in the population do
|
Replace the worst solution in clan using Equation (13) |
Replace the solutions that violate value by using Equation (13) |
end for
|
Analyze population and calculate fitness |
Recalculate the value of the parameter |
end while
|
return the best solution among all clans |