|
Algorithm 3 Competition function. |
-
1:
input:; ▹ fitness values for each group
-
2:
output:; ▹ changed particles via competitions
-
3:
;
-
4:
;
-
5:
for to
do ▹ set the number of competitions
-
6:
if
then
-
7:
; ▹ add one whenever evolution-based particle wins
-
8:
else if
and
then
-
9:
; ▹ add one whenever evolution-based particle loses
-
10:
;
-
11:
; ▹ exclude winning particle at next competition
-
12:
end if
-
13:
end for
-
14:
for to
do
-
15:
;
-
16:
delete
; ▹ delete the particle with low fitness value
-
17:
a new particle; ▹ use uniform distribution
-
18:
end for
-
19:
for to
do
-
20:
;
-
21:
delete
;
-
22:
a new particle; ▹ use score vector for feature filter
-
23:
end for
-
24:
;
-
25:
;
|