Research Article

Cluster Design and Optimization of SWIPT-Based MEC Networks with UAV Assistance

Algorithm 2

Centralized and distributed algorithm of UAV and GN collaboration.
Input: : Tolerance error
: Number of independent calculations
: A copy of the auxiliary variable at
each GN
1: fordo
2:   GNs
3:  Update according to the received result;
4:  fordo
5:   for The change in is more than do
6:    for each GNs do
7:     ;
8:    end for
9:   end for;
10:  Update with (28), (29), (30);
11: end for
12: Send to UAV
13:  UAV
14:  Add and average the of all GNs in this part;
15: 
16: Send all GNs’ and to each GN;
17: end for