Research Article
Edge Server Placement for Service Offloading in Internet of Things
Algorithm 2
Optimizing edge server layout strategy based on GA.
| Inputs: K chromosomes, Number of iterations T, variable t, the number of chromosomes to operate k | | Output: K chromosomes after GA iteration optimization | (1) | for t = 0 to T do | (2) | if t == 0 then | (3) | Initialize K chromosomes | (4) | else | (5) | Compute the fitness of K chromosomes and select k chromosomes with lower fitness | (6) | Record the chromosome with the lowest fitness | (7) | Select two chromosomes randomly and perform crossover operations | (8) | Select two chromosomes randomly and perform mutation operations | (9) | end if | (10) | end for | (11) | return K chromosomes |
|