Skip to main content
. 2026 Feb 21;28(2):248. doi: 10.3390/e28020248
Algorithm 2 AO-Based Two-layer-Three-Stages Optimization
1: Initialize: Convergence tolerance ε, iteration index j = 0, initial energy efficiency ρ(0)=0.
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: S(0), P(0), L(0){S,P,L}
6: while not converged do                                                              Inner Loop: BCD Method
7: i  i + 1
8: Fix P(i1), L(i1) and ρ(j), solve (P2.1) to obtain S(i)
9: Fix Si, L(i1) and ρ(j), solve (P2.2) to obtain P(i)
10: Fix Si, P(i) and ρ(j), solve (P2.3) to obtain L(i)
11: end while
12: Update variables: S,P,LS(i), P(i), L(i)
13: Update energy efficiency:
 ηSEE= n=1Nk=1KωknRk,rad[n]Et+Ef
14: jj + 1
15: until ρ(j) ρj1 ε
16: Output: Optimal solution S, P, L and max EE.