|
Algorithm 1 Neighborhood competition operations |
-
Require:
: individual at position ;
: neighbor individuals;
: selection probability
-
Ensure:
: updated individual at position
-
1:
← None
-
2:
for each
A
in
do
-
3:
if > then
-
4:
←A
-
5:
end if
-
6:
end for
-
7:
if
then
-
8:
if < then
-
9:
← Strategy1( )
-
10:
▹ Use Strategy 1 to generate new individual
-
11:
else
-
12:
← Strategy2( )
-
13:
▹ Use Strategy 2 to generate new individual
-
14:
end if
-
15:
else
-
16:
▹ Retain the original individual
-
17:
end if
-
18:
Return as the updated individual
|