Skip to main content
. 2019 Sep 14;19(18):3973. doi: 10.3390/s19183973
Algorithm 2 RR strategy
  • 1:

    Generate parameters for consumer allocation

  • 2:

    Define global variable RW

  • 3:

    while (user < N) and (min(RW) >= 0) do

  • 4:

    if Optimisation needs then

  • 5:

      Load consumer preferences. Ai size from preference array

  • 6:

      Call Optimisation Function under variables preferences: RW, Ai, N

  • 7:

      Number of user ++

  • 8:

      if (RW equals to 0) then

  • 9:

       Break

  • 10:

      end if

  • 11:

    end if(No consumer to optimise)

  • 12:

    end while