Skip to main content
. 2020 Jun 13;20(12):3363. doi: 10.3390/s20123363
Algorithm 1 SCA-based alternating algorithm for P1
Input:Ak, K, N, Δ, δ, qk, P, B, σ2, Pi, P0, Utip, v0, d0, ρ, s, A, Vmax, ε and tolerant threshold ξ, ξ1;
  • 1:

     

  • 2:

    Initialize: Iterative number i=1, local point qu[n](1), EEU1=0;

  • 3:

     

  • 4:

    repeat

  • 5:

     

  • 6:

        Solve P2.2 by applying CVX under the given trajectory qu[n](i) and get the optimal bits allocation in each slot Iku*[n], Ikc*[n] and Ikd*[n];

  • 7:

     

  • 8:

        Update the iterative number i=i+1;

  • 9:

     

  • 10:

        Let Iku,i[n]=Iku*[n], Ikc,i[n]=Ikc*[n] and Ikd,i[n]=Ikd*[n];

  • 11:

     

  • 12:

        repeat

  • 13:

     

  • 14:

            Initialize: Iterative number l=1, local point qu[n]l and y[n]l, EEUi,1=0;

  • 15:

     

  • 16:

            Solve P3.1 by applying CVX under the given bits allocation in each slot Iku,i[n]Ikc,i[n]Ikd,i[n] and get the optimal trajectory of the UAV qu*[n];

  • 17:

     

  • 18:

            Update l=l+1;

  • 19:

     

  • 20:

            Let qui,l[n]=qu*[n];

  • 21:

     

  • 22:

            Get EEUi,l;

  • 23:

     

  • 24:

        until EEUi,lEEUi,l1ξ1

  • 25:

     

  • 26:

        Obtain the energy efficiency of the UAV EEUi by (14);

  • 27:

     

  • 28:

    until EEUiEEUi1ξ

  • 29:

     

  • 30:

    Let Iku[n]=Iku,i[n], Ikc[n]=Ikc,i[n], Ikd[n]=Ikd,i[n], qu[n]=qui,l[n];

  • 31:

     

  • Output:Iku[n], Ikc[n], Ikd[n] and qu[n].

  • 32: