|
Algorithm 2 Binary Particle Swarm Optimization. |
|
Input: The population
Output: The updated population and
-
1:
Initialize binary random population X
-
2:
Evaluate the objective function of each individual and save the of each solution
-
3:
Identify the in the population
-
4:
Define , , , and
-
5:
fordo
-
6:
Update w using Equation (4)
-
7:
for do
-
8:
Update using Equation (3)
-
9:
Update using Equation (2)
-
10:
end for
-
11:
Binarization of population X using Algorithm 1
-
12:
Evaluate the objective function of each individual and save the of each solution
-
13:
Update
-
14:
end for
-
15:
Return ()
|