Research Article

Secrecy Energy-Efficient UAV Communication via Trajectory Design and Power Control

Algorithm 2

Proposed iterative algorithm to solve (P1).
Input:
Output:,
1: Initialize, which should be feasible in
 (10). Let
2: repeat
3: With fixed UAV trajectory , obtain the
  optimal UAV’s transmit power using (14)
4: With fixed UAV transmit power , obtain
  the optimal solution using Algorithm 1
5: Update ,
  , ,
  , , ,
  , .
6: Update .
7: until converges to a prescribed threshold .