Algorithm 2 Genetic Algorithm (GA) |
Input: |
Maximum number of generations (). |
Population size (). |
Lower and upper bound variables (). |
Output: |
Best value of all chromosomes (). |
-
1:
for i=1:
do
-
2:
-
3:
-
4:
-
5:
end for
-
6:
for t=1:
do
-
7:
for i=1:
do
-
8:
-
9:
-
10:
-
11:
-
12:
-
13:
-
14:
-
15:
end for
-
16:
end for
|