Skip to main content
. 2022 Nov 18;22(22):8921. doi: 10.3390/s22228921
Algorithm 1: Multi-User Time-Power Resource Allocation Algorithm
1. Initialization: PPU1, γ, λi(k)(i=1,2,3), Ωα, convergence toleranceΔ;
2. while |λi(k)-λi(k1)|>Δ(i=1,2,3)
3.    calculated γ*, PPU1 according to Equations (22) and (27);
4.    if PPU1>0 and PPU1<PTmax
5.     update PPU1
6.    end if
7.    calculated τ according to Equation (17);
8.    iteratively update λi(k+1)(i=1,2,3) according to Equation (29);
9. end while
10. obtained Ωα according to P5;
11. for αΩα
12.  calculated τ according to Equation (17);
13. end for