Research Article
Efficient Computation Offloading for Service Workflow of Mobile Applications in Mobile Edge Computing
Algorithm 2
An immune particle swarm algorithm for computing offloading in MEC environment.
| Input: Qi, BWi,j, , fi,j, B, t, epoch, i, j ∈ R | | Output: Gbest | | (1) | Set count, Gk, c1,c2, , , epoch, seed, X, V | | (2) | for l = 1 to seed do | | (3) | initialize velocity and position xi,j for particle | | (4) | evaluate particle Xl and set pbestl = Xl | | (5) | end for | | (6) | for k = 1 to Gk do | | (7) | update by (10); | | (8) | for i = 1 to seed + s do | | (9) | for j = 1 to h do | | (10) | update X and V by (10) | | (11) | Constrain the particle boundary | | (12) | end for end for | | (13) | if fit(Xik) < fit(pbesti) then | | (14) | pbesti = Xik | | (15) | if fit(Xik) < fit(Gbest) then | | (16) | Gbest = Xik | | (17) | end for | | (18) | immune operation through formulas (14)–(16) | | (19) | end for |
|