|
Algorithm 1 Trajectory Planning Algorithm for Problem (P3). |
-
1:
Initialization: Initial trajectory of the base station UAV is , initial value of energy efficiency , maximum threshold , and number of iterations .
-
2:
Solve problem (P2.3) given UAV trajectory and system secret energy efficiency value , and obtain optimal solutions , , and .
-
3:
Calculate . If , then the algorithm converges, obtains the optimal solution, and outputs , , . Otherwise, continue with steps 4–5.
-
4:
Make , update parameters , and update UAV trajectory .
-
5:
Update the number of iterations . Then, execute step 3 again to check whether the algorithm converges.
|