|
Algorithm 4 Update function |
-
1:
input:; ▹ the sub-populations
-
2:
output:; ▹ the new sub-population
-
3:
generate new offspring by crossover from the and best individual of ;
-
4:
;
-
5:
whiledo ▹ keep the number of individuals in the P
-
6:
select an individual at random among the and best individual of the ;
-
7:
select an individual at random among remaining individuals of ;
-
8:
generate new offspring by crossover from the and ;
-
9:
;
-
10:
end while
-
11:
run a mutation on overlapping individuals;
|