Skip to main content
. 2023 Jan 8;23(2):723. doi: 10.3390/s23020723
Algorithm 1 Trajectory Planning Algorithm for Problem (P3).
  • 1:

    Initialization: Initial trajectory of the base station UAV is QU0, initial value of energy efficiency μ=0, maximum threshold ϵ>0, and number of iterations r=0.

  • 2:

    Solve problem (P2.3) given UAV trajectory QUr and system secret energy efficiency value μ, and obtain optimal solutions QU*, η*, and zI1*,zI2*,XI*,YI*,φU*,andω*I.

  • 3:

    Calculate η*μEtotal*. If η*μEtotal*<ϵ, then the algorithm converges, obtains the optimal solution, and outputs QU*, η*, zI1*,zI2*,XI*,YI*,φU*,ω*I. Otherwise, continue with steps 4–5.

  • 4:

    Make μ*=η*Etotal*, update parameters μ=μ*, and update UAV trajectory QUr+1=QU*.

  • 5:

    Update the number of iterations r=r+1. Then, execute step 3 again to check whether the algorithm converges.