Research Article
Task Offloading and Scheduling Strategy for Intelligent Prosthesis in Mobile Edge Computing Environment
Algorithm 2
Task Offloading and Scheduling Strategy (TOSS).
Input Workflow ; matrix of task execution ; a set of edge servers, ; mobile device, MD; cloud server, CS; moving path; | Output The optimal task scheduling plan | 1 For each | 2 { initial the matrix of task execution and search speed randomly; | 3 calculate the energy consumption, the latency and the fitness value according to the matrix of task execution and the moving path; | 4 }//End For each | 5 While ()//Set maximum number of iterations | 6 { update the matrix of task execution according to the search speed ; | 7 For each | 8 { calculate the energy consumption, latency and fitness value according to the matrix of task execution and the moving path; | 9 }//End For each | 10 Select the matrix of task execution with the lowest fitness value as the optimal task scheduling plan; | 11 Update the inertia weight; | 12 Update the search speed ; | 13 }//End While | 14 Update the optimal task scheduling plan; |
|