Skip to main content
. 2022 Feb 20;24(2):300. doi: 10.3390/e24020300
Algorithm 3 Alternating optimization for solving Problem (30)
  • 1:

    Initialize iteration index l=0 and the (ϕl,pl,τel) satisfying the constraints in (15).

  • 2:

    while The improvement of η is higher than a predefined threshold ϵ2 do.

  • 3:

        Solve Problem (16) given (pl,τel) and obtain the optimal solution ϕl+1.

  • 4:

        Solve Problem (27) given (ϕl+1,τel) and obtain the optimal solution pl+1.

  • 5:

        Solve Problem (30) given (ϕl+1,pl+1) and obtain the optimal solution τel+1.

  • 6:

        Update l=l+1.

  • 7:

    return The optimal beamwidth ϕ*, transmit power p*, and EH time ratio τe*.