Skip to main content
. 2020 Jul 7;20(13):3800. doi: 10.3390/s20133800
Algorithm 1: Flow-adaptive leased channel adjustment algorithm.

Input: ε, η, ϕ, M, Lmax,

Input: h,m,l:1>h>m>l>0;

Input: θh,θm,θl:1>θh>θm>θl>0.

Output: L.

  • 1:

    if ε+η+ϕMθl then  ▹ The proportion of PU flows is at the ultra-low level.

  • 2:

      L1=Lmax

  • 3:

      if  L1+εM then

  • 4:

        L=L1

  • 5:

      else

  • 6:

        L=Mε

  • 7:

    if θl<ε+η+ϕMθm then  ▹ The proportion of PU flows is at the low level.

  • 8:

      L1=h·Lmax

  • 9:

      if L1+εM then

  • 10:

        L=L1

  • 11:

      else

  • 12:

        L=Mε

  • 13:

    if θm<ε+η+ϕMθh then  ▹ The proportion of PU flows is at the medium level.

  • 14:

      L1=m·Lmax

  • 15:

      if L1+εM then

  • 16:

        L=L1

  • 17:

      else

  • 18:

        L=Mε

  • 19:

    ifθh<ε+η+ϕM1 then  ▹ The proportion of PU flows is at the high level.

  • 20:

      L1=lLmax

  • 21:

      if L1+εM then

  • 22:

        L=L1

  • 23:

      else

  • 24:

        L=Mε

  • 25:

    return L