| Algorithm 2 AO-Based Two-layer-Three-Stages Optimization | |
| 1: Initialize: Convergence tolerance ε, iteration index j = 0, initial energy efficiency . 2: Initialize: Feasible task scheduling S, power allocation P, and trajectory L. 3: repeat Outer Loop 4. Set inner iteration index i = 0 5: Initialize inner variables: 6: while not converged do Inner Loop: BCD Method 7: i i + 1 8: Fix and , solve (P2.1) to obtain 9: Fix , and , solve (P2.2) to obtain 10: Fix , and , solve (P2.3) to obtain 11: end while 12: Update variables: 13: Update energy efficiency: 15: until 16: Output: Optimal solution and max EE. |