Skip to main content
. 2022 Sep 19;22(18):7085. doi: 10.3390/s22187085
Algorithm 3: Joint Device Association and Power Control Online Optimization (JDAPCOO) algorithm
  • 1:

    Input: Device set I, UAV set U, ground 5G base station set B, channel state information, PD power maximum Pmax and the minimum transmission rate requirement of the PDs Rth.

  • 2:

    Output: Optimal device association strategy {xu,xb} and optimal power control scheme {P}.

  • 3:

    repeat

  • 4:

    for each time slot do

  • 5:

       Initialize PDs’ power and decide the device association strategy xu(t) and xb(t) according to Algorithm 1.

  • 6:

       Based on xu(t) and xb(t) obtained from Algorithm 1, the power control scheme P(t) is decided using Algorithm 2.

  • 7:

       Update channel state information.

  • 8:

       t=t+1.

  • 9:

    end for

  • 10:

    until t>T.

  • 11:

    Return {xu,xb and P}.