Algorithm1: Load balance based on GA |
-
1.
Input:
-
2.
Output:
-
3.
Create a population matrix ;
-
4.
forfrom 1 to
N
-
5.
)
-
6.
-
7.
-
8.
-
9.
end for
-
10.
Row vectors in matrix sorted by fitness in descending order
-
11.
-
12.
Perform crossover operations
-
13.
Perform mutation operations
-
14.
forfrom 1 to end
-
15.
-
16.
-
17.
-
18.
end for
-
19.
Row vectors in matrix sorted by fitness in descending order
-
20.
Tournament selects N rows to form a new population matrix
-
21.
if reach the maximum evolution generation then
-
22.
-
23.
-
24.
else
-
25.
Go to step 11
-
26.
end if
|