Skip to main content
. 2019 Nov 4;19(21):4799. doi: 10.3390/s19214799
Algorithm 1. Maximum Weighted Ergodic Energy Efficiency (MWEEE) Algorithm
Input:Pdmax;p0;Km,Kk,m,m,k;SINR0
Output:P*m,kd,P*kc,λ*m,k,m,k;Cee*
1: Initialize: the number of iteration i,j=0, the Uee(i)=0, the threshold ϵ=e5, Pm,kd(0) (m,k), the approximation coefficient α(j),β(j), maximum number of iterations jmax, the learning rate s1,s2, the lagrange multiplier μ1=0.1,μ2=0.1.
2: Obtain Pm,kd with the given initialized parameters according to P5.
3: Δφ(Uee)
4: PtmpPm,kd(0)+ϵ
5: while φ(Uee)ϵ (i-th iteration) do
6:    while Pm,kd(0)Ptmpϵ (j-th iteration) do
7:        PtmpPm,kd(0)
8:        μ1(j+1)=[μ1(j)s1*(eP˜m,kdPdmax)]+
9:        μ2(j+1)=[μ2(j)s2*(P˜m,kdln(SINR0N0Kmlog(1p0)))]+
10.        Pm,kd(0)Pm,kd(j), obtain żPm,kd(j+1) with the Pm,kd(0) and then obtain α(j+1),β(j+1)
11:        jj+1
12:    end while
13:    Pm,kd(i)Pm,kd(j1)
14:    Obtain Uee(i+1) according to the formula (4).
15:    Obtain Pm,kd(i+1) according to P5.
16:    Δφ(Uee)
17:    ii+1
18: end while
19: Output Pm,kd(i) as P*m,kd.
20: Compute the P*kc with the P*m,kd, m,k.
21: for k=1 to K do
22:    for m=1 to M do
23:         Substitute (P*kc,P*m,kd) into formula (26) and formula (28) to obtain wm,kH and wm,kI respectively.
24:    end for
25:    Obtain λ*m,k according to formula (22).
26: end for
27: Compute Cee* according to formula (8).
28: Output λ*m,k,Cee*, m,k.