Skip to main content
. 2022 Mar 28;22(7):2590. doi: 10.3390/s22072590
Algorithm 1: Iterative algorithm for problem P1
1: Initialization: Set the UAVs’ initial horizontal location Q(0), vertical location Z(0),
task split ratio X(0), bandwidth allocation B(0); Let iteration index r=0.
2: repeat
  3: Solve P3 with given {Q(r),Z(r),B(r),X(r)}, use standard solution method [9]
      to find the optimal solution as A(r+1).
  4: Solve P4 with known {A(r+1),Z(r),B(r), X(r)}, use CVX to find the optimal
      solution as Q(r+1).
  5: Solve P5 with known {A(r+1),Q(r+1),B(r), X(r)}, use CVX to find the optimal
      solution as Z(r+1).
  6: Solve P6 with known {A(r+1),Q(r+1),Z(r+1), X(r)}, use CVX to find the optimal
      solution as B(r+1).
  7: Solve P7 with known {A(r+1),Q(r+1),Z(r+1), B(r+1)}, get closed-form solution of
      X(r+1).
8: Update r=r+1
9: Until: ζ(r)ζ(r+1)ζ(r)η. The Algorithm is over if the fractional decrease of
    the objective value is below a threshold.