Research Article

Energy-Efficient Computation Offloading and Transmit Power Allocation Scheme for Mobile Edge Computing

Algorithm 1

Iterative energy-efficient computation offloading algorithm for MD n.
Require:
  : an infinitesimal number;
Ensure:
: optimal offloading and transmission power allocation policy;
(1)Initialize: cn, dn, , , , and and iteration index k ⟵ 1;
(2) Compute tn,loc, en,loc by (5) and (6), respectively;
(3) Compute Zn,loc by (7);
(4)while do
(5) /Transmit power allocation/
(6) Compute tn by (28);
(7)tn(k + 1) = tn(k);
(8) Compute pn by (29);
(9)pn(k + 1) = pn(k);
(10) / Task offloading policy/
(11) Compute αn by (30);
(12)αn(k + 1) = αn(k);
(13) Compute en,off, tn,off by (9) and (11), respectively;
(14) Compute Zn,off by (13);
(15) Compute Zn by (14);
(16) / Lagrangian multiplier update /
(17) Update Lagrangian multiplier λ(k + 1) by (31);
(18)k = k + 1;
(19)end while