|
Algorithm 3. Individual reparation and promotion. |
|
Input: solution vector
|
|
Output: repaired and promoted solution vector
|
|
1: For int
to
|
|
2: Compute value-to-weight of Ik; end for
|
|
3: Compute according to value-to-weight
|
|
4: If ()
|
|
5: Int ;
|
|
6: For int
to
|
|
7: If ()
|
|
8: ;
|
|
9: Else
|
|
10: End for
|
|
11: End if
|
|
12: Else if ()
|
|
13: Int
|
|
14: For int
to
|
|
15: If ()
|
|
16:
;
|
|
17: End for
|
|
18: End else
|