View full-text article in PMC Sensors (Basel). 2021 Aug 30;21(17):5819. doi: 10.3390/s21175819 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice 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