|
Algorithm 5 Binary Whale Optimization Algorithm. |
|
Input: The population
Output: The updated population and
-
1:
Initialize binary random population X
-
2:
Evaluate the objective function of each individual
-
3:
Identify the best individual in the population ()
-
4:
fordo
-
5:
for do
-
6:
Update and p
-
7:
if then
-
8:
if then
-
9:
Apply Equation (14)
-
10:
else
-
11:
Apply Equation (11)
-
12:
end if
-
13:
else
-
14:
Apply Equation (15)
-
15:
end if
-
16:
end for
-
17:
Binarization of population X using Algorithm 1
-
18:
Evaluate the objective function of each individual
-
19:
Update if there is a better solution
-
20:
end for
-
21:
Return ()
|