Skip to main content
. 2021 Aug 30;21(17):5819. doi: 10.3390/s21175819
Algorithm 1 Consumer’s Demand Decision Algorithm
  • 1:

    procedureConsumer Demand  (νl,ol)

  • 2:

     while each lρ do

  • 3:

      get x*(νl,ol), g*(νl,ol), e*(νl,ol) by solving subproblem (28) for the given νl,ol

  • 4:

      send consumer’s demand x*(νl,ol), g*(νl,ol), e*(νl,ol) to the energy provider

  • 5:

     end while

  • 6:

     return x*(νl,ol), g*(νl,ol), e*(νl,ol)

  • 7:

    end procedure