|
Algorithm 2: Crossover |
-
1.
Input:
-
2.
Output:;
-
3.
-
4.
while
N
do
-
5.
if then
-
6.
if then
-
7.
Randomly choose a crossover starting node
-
8.
Randomly choose the crossover length
-
9.
perform a crossover operation with
-
10.
Sub-individuals are inserted at the end of the population
-
11.
-
12.
else
-
13.
-
14.
end if
-
15.
else
-
16.
if then
-
17.
Select prior high fitness crossover objects by selection probability
-
18.
Randomly choose a crossover starting node
-
19.
Randomly choose the crossover length
-
20.
perform a crossover operation with
-
21.
Sub-individuals are inserted at the end of the population
-
22.
-
23.
else
-
24.
-
25.
end if
-
26.
end if
-
27.
end while
|