Skip to main content
. 2020 Feb 19;20(4):1128. doi: 10.3390/s20041128
Algorithm 2: Pseudo Code for the Auction Algorithm.
  1. Q = the set of all requests from multicast D2D groups to reuse cellular resources

  2. Set Ptc=Ptmaxc and Ptminm PtmPtmaxm

  3. All cellular users broadcast a set of prices

  4. for all cϵC, mϵ do

  5. Multicast D2D transmitters start auction algorithm simultaneously

  6. ifSeNBsm, then

  7. Allocates the resources to the multicast groups

  8. Calculate γc, γm, Rc, and Rm

  9. Calculate Gsum and G

  10. Formulate the performance gain optimization problem as S2. maxi=1Ic=1Cm=1MG

  11. else

  12. SeNB<sm

  13. end if

  14. end for