|
Algorithm 5 Reproduction |
-
1:
procedure ReproductionStage(P, k)
-
2:
GetPopulationSample(P, k)
-
3:
SelectParentTournament(S)
-
4:
if is not null then
-
5:
GetPopulationSample(P, k)
-
6:
SelectParentTournament(S)
-
7:
if is not null then
-
8:
PerformCrossover(parent1, parent2)
-
9:
for all child in offspring do
-
10:
AddToEvaluation(child)
-
11:
end for
-
12:
AddToPopulation(P, parent2)
-
13:
end if
-
14:
AddToPopulation(P, parent1)
-
15:
end if
-
16:
end procedure
|