|
Algorithm 4 Binary Pendulum Search 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:
for do
-
7:
Update by Equation (10)
-
8:
Update the position of using Equation (9)
-
9:
end for
-
10:
end for
-
11:
Binarization of population X using Algorithm 1
-
12:
Evaluate the objective function of each individual
-
13:
Update if there is a better solution
-
14:
end for
-
15:
return the updated population where is the best result
|