|
Algorithm 1 Multigene algorithm for solving task allocation problem |
-
Input:
-
, , , ;
-
Output:
-
task allocation scheme with the highest F;
-
1:
Initialize schemes in initial chromosome;
-
2:
Calculate F of each scheme of the initial chromosome;
-
3:
Set and calculate of the initial chromosome;
-
4:
= number of iterations;
-
5:
Set , , , ;
-
6:
while do
-
7:
Crossover process in Phase 1;
-
8:
Mutation Process in Phase 2;
-
9:
Reinsertion Process in Phase 3;
-
10:
Select the scheme with the highest F in this generation;
-
11:
;
-
12:
end while
-
13:
Output the scheme with the highest F in the last generation.
|