Skip to main content
. 2022 Aug 12;22(16):6023. doi: 10.3390/s22166023
Algorithm 2 Iterative Algorithm for Resource Allocation.
  • 1:

    Initialization: Initialize the maximum number of iterations Tmax and set iteration index τ=1; and initialize the current feasible point u(1), v(1), p(1), q(1) and a penalty factor η≫1

  • 2:

    repeat

  • 3:   

    Set the variables u, v, p, and q to be solved by the standard convex program solvers

  • 4:   

    Evaluate the convex functions FnA(u,p), GnA(u,p), GnB(v,q), and H(u,v)

  • 5:   

    According to the current point u(τ), v(τ), p(τ), and q(τ), evaluate the affine functions ∇u(τ),p(τ)affineFnA(u,p), ∇u(τ),p(τ)affineGnA(u,p), ∇v(τ),q(τ)affineFnB(v,q), and ∇u(τ),v(τ)affineM(u,v)

  • 6:   

    Substitute them into (48) to solve the convex problem for getting the upper-bound optimal point uopt, vopt, popt, and qopt

  • 7:   

    Update iteration index τ=τ+1

  • 8:   

    Update the next iteration point u(τ)=uopt, v(τ)=vopt, p(τ)=popt, q(τ)=qopt

  • 9:

    until(u(τ−1),v(τ−1),p(τ−1),q(τ−1))=(u(τ),v(τ),p(τ),q(τ)) or τ=Tmax

  • 10:

    Output the suboptimal solution u*=u(τ), v*=v(τ), p*=p(τ), q*=q(τ)