Skip to main content
. 2021 Feb 17;12(2):204. doi: 10.3390/mi12020204
Algorithm 1: MCE-GA
Inputs:
Population size list PopNum, evolutionary stagnation threshold ε, the iterations T, interval steps of migration migFr, mutation probability list pm, crossover probability list pc
Outputs:
Optimal offloading policy A, the total overhead C
1: Randomly initialize the populations Pop and Elite population Elite_pop
2: Initialize the inputs
3: For i = 1toPopNum.size do
4: Pop = Pop[i];
5: Evaluate the fitness value of each individual in the i-th Pop;
6: Update Elite population Elite_pop;
7: While stopping criterion is not met do
8: For i = 1toPopNum.size do
9:  offspring = Select (Pop[i]);
10:  pop = Cross and Mutate (offspring);
11:  Pop[i] = Pop[i]+ pop;
12:  evaluate the fitness value of each individual in Pop[i];
13:  Select individuals to get a new generation of population;
14: End For
15: IF evolutionary algebra % migFr==0 do
16:  Carry out population migration;
17: Update Elite population Elite_pop;
18: Return optimal offloading policy and the total overhead.
19: End