Algorithm 2 Proposed eHHO pseudo-code |
Inputs: The population size N and maximum FFEs number ()
Initialize population , () according to Algorithm 1
Initialize
whiledo
Calculate the fitness values of all individuals
Set as the location of current best solution
for each solution do
Update the initial energy and jump strength J
Update E
if
then
Exploration phase
Update the location vector
end if
if
then
Exploitation phase
if
and then
Soft besiege
Update the location vector by soft besiege
else if
and then
Hard besiege
Update the location vector by using hard besiege
else if
and then
Soft besiege with progressive rapid dives
Update the location vector by using soft besiege with rapid dives
else if
and then
Hard besiege with progressive rapid dives
Update the location vector using hard besiege with progressive rapid dives
end if
end if
end for
if
then
Generate
Perform greedy selection between and
else if
and then
Generate
Perform greedy selection between and
else
Generate
Perform greedy selection between and
end if
end while
Return
Post-process results and visualization
|