|
Algorithm 2. Population Initialization. |
|
Input: population size
, fitness function
|
|
Output: initial population
|
|
1: For intto; |
|
2: For int
to
|
|
3: Generate a uniformly distributed random
in [0, 1];
|
|
4: If
|
|
5:
|
|
6: Else
|
|
7: End for
|
|
8: Calculate
through Formula (9);
|
|
9: End for
|
|
10: Compute fitness of all vectors in alternative population;
|
|
11: Select the former vectors as initial population; |
|
12: Compute the optional solution
and its fitness
in initial population
|