|
Algorithm 2 Pseudo-code of the DE. |
-
Input:
: population size; : problem dimension; : maximum number of iterations; : scaling factor; : crossover probability;
-
Output:
The position of the best individual and its fitness value;
-
1:
Initialize the population randomly;
-
2:
Calculate the fitness value of X;
-
3:
while stopping condition is not met do
-
4:
for do
-
5:
The mutation vector is generated using the mutation operation shown in Equation (22) for individual ;
-
6:
end for
-
7:
for do
-
8:
A test vector is generated for individual and variance vector using the crossover operation shown in Equation (25);
-
9:
end for
-
10:
Calculate the fitness value of the function for each trial vector ;
-
11:
for do
-
12:
Generate the next generation of individuals using the selection operation for individual and trial vector ;
-
13:
end for
-
14:
end while
|