Algorithm 4 Genetic Algorithm |
-
1:
Randomly generate a population P of n solutions
-
2:
repeat
-
3:
-
4:
repeat
-
5:
Selection of 2 solutions x and of P
-
6:
Crossing between the two parents x and to form two children y and
-
7:
Mutate y and under certain conditions
-
8:
Add y and in
-
9:
until
-
10:
-
11:
until shutdown criteria are met
|