|
Algorithm 2: Proposed PSO algorithm |
Input: popSize, maxIte
-
1:
initialize , , and
-
2:
initialize , , and
-
3:
initialize , , ,
-
4:
create swarm population with size maxIte
-
5:
repeat
-
6:
adjust inertia factor value according to Equation (9)
-
7:
for all
do
-
8:
calculate particle fitness according to Equation (10)
-
9:
if
then
-
10:
-
11:
end if
-
12:
end for
-
13:
for all
do
-
14:
retrieve best particle from neighborhood
-
15:
update speed according to Equations (1)–(4) and (7) to binary and continuous part respectively
-
16:
modify particle position according to Equations (6) and (8)
-
17:
end for
-
18:
until reaching iterations
-
19:
return solution of best particle in population
|
| Output: The particle with the last best fitness value |