Skip to main content
. 2020 Nov 20;20(22):6642. doi: 10.3390/s20226642
Algorithm 2 Subcarrier assignment matching scheme.
  • Initialize power allocation for all users.

  • Obtain users’ BSs association by Algorithm 1.

  • Initialize the matched MU, the unmatched UMU=hm,i,kN×K for a given cell m, and UK lists to record the matched users, the unmatched, and the user’s preferable subcarrier.

  • while UMUϕ do

  • for i=1:N do

  •   if iUMU then

  •    Find the maximum value hm,i from UMU according to:
    hm,i,k=argmaxiAUUMUN×K (17)
  •    Match the user i with the subcarrier k, and remove him/her from UMU.

  •    Assume each subcarrier k has a matching user i; we have Tu=MUk,i,u=1,..,K

  •     if MUk1 then

  •     Calculate the EE, and select the set with the higher EE such that:
    T=argmaxTuEETu (18)
  •     Update MU, and remove the selected users from UMU. Update UK by removing the matched subchannel.

  •    end if

  •   end if

  •  end for

  • end while