Research Article

[Retracted] Efficient and Energy-Saving Computation Offloading Mechanism with Energy Harvesting for IoT

Algorithm 1

Deep learning-based efficient and energy-saving offloading decision and resource allocation algorithm.
Input: task size .
 Output: the optimal value and minimum energy consumption .
(1)Begin
(2)Initialize variables ;
(3)Randomly input tasks with size ;
(4)Obtain possible offloading actions;
(5)Calculate the optimal offloading action by (11);
(6)Input to train DNN network, and update network parameters according to (14) and (15);
(7)Obtain the optimal parameterized function ;
(8)Input random new task into the well-trained DNN network (i.e., the parameterized function , and achieve the optimal offloading action ;
(9)while constraints (9a) to (9e) are all satisfied and is within the maximum value; do
(10)Update the and by (19) based on accumulated momentum (20) and the gradient descent function (21);
(11);
(12)end while
(13)Obtain , and the minimum total energy consumption according to (22).
(14)end