IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v392y2025ics0306261925006622.html
   My bibliography  Save this article

Learning prosumer behavior in energy communities: Integrating bilevel programming and online learning

Author

Listed:
  • Crowley, Bennevis
  • Kazempour, Jalal
  • Mitridati, Lesia
  • Alizadeh, Mahnoosh

Abstract

Dynamic pricing through bilevel programming is widely used for demand response but often assumes perfect knowledge of prosumer behavior, which is unrealistic in practical applications. This paper presents a novel framework that integrates bilevel programming with online learning, specifically Thompson sampling, to overcome this limitation. The approach dynamically sets optimal prices while simultaneously learning prosumer behaviors through observed responses, eliminating the need for extensive pre-existing datasets. Applied to an energy community providing capacity limitation services to a distribution system operator, the framework allows the community manager to infer individual prosumer characteristics, including usage patterns for photovoltaic systems, electric vehicles, home batteries, and heat pumps. Numerical simulations with 25 prosumers, each represented by 10 potential signatures, demonstrate rapid learning with low regret, with most prosumer characteristics learned within five days and full convergence achieved in 100 days.

Suggested Citation

  • Crowley, Bennevis & Kazempour, Jalal & Mitridati, Lesia & Alizadeh, Mahnoosh, 2025. "Learning prosumer behavior in energy communities: Integrating bilevel programming and online learning," Applied Energy, Elsevier, vol. 392(C).
  • Handle: RePEc:eee:appene:v:392:y:2025:i:c:s0306261925006622
    DOI: 10.1016/j.apenergy.2025.125932
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261925006622
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.125932?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Hennig, Roman J. & de Vries, Laurens J. & Tindemans, Simon H., 2023. "Congestion management in electricity distribution networks: Smart tariffs, local markets and direct control," Utilities Policy, Elsevier, vol. 85(C).
    2. Dinh, Huy Truong & Lee, Kyu-haeng & Kim, Daehee, 2022. "Supervised-learning-based hour-ahead demand response for a behavior-based home energy management system approximating MILP optimization," Applied Energy, Elsevier, vol. 321(C).
    3. David Pozo & Enzo Sauma & Javier Contreras, 2017. "Basic theoretical foundations and insights on bilevel models and their applications to power systems," Annals of Operations Research, Springer, vol. 254(1), pages 303-334, July.
    4. Thomas Kleinert & Martin Schmidt, 2023. "Why there is no need to use a big-M in linear bilevel optimization: a computational study of two ready-to-use approaches," Computational Management Science, Springer, vol. 20(1), pages 1-12, December.
    5. Charbonnier, Flora & Morstyn, Thomas & McCulloch, Malcolm D., 2022. "Coordination of resources at the edge of the electricity grid: Systematic review and taxonomy," Applied Energy, Elsevier, vol. 318(C).
    6. Spiliotis, Konstantinos & Ramos Gutierrez, Ariana Isabel & Belmans, Ronnie, 2016. "Demand flexibility versus physical network expansions in distribution grids," Applied Energy, Elsevier, vol. 182(C), pages 613-624.
    7. Anthony Papavasiliou, 2018. "Analysis of distribution locational marginal prices," LIDAM Reprints CORE 3045, Université catholique de Louvain, Center for Operations Research and Econometrics (CORE).
    8. Pfenninger, Stefan & Staffell, Iain, 2016. "Long-term patterns of European PV output using 30 years of validated hourly reanalysis and satellite data," Energy, Elsevier, vol. 114(C), pages 1251-1265.
    9. Stenner, Karen & Frederiks, Elisha R. & Hobman, Elizabeth V. & Cook, Stephanie, 2017. "Willingness to participate in direct load control: The role of consumer distrust," Applied Energy, Elsevier, vol. 189(C), pages 76-88.
    10. Ahmad Faruqui & Sanem Sergici, 2010. "Household response to dynamic pricing of electricity: a survey of 15 experiments," Journal of Regulatory Economics, Springer, vol. 38(2), pages 193-225, October.
    11. Andersen, Frits Møller & Baldini, Mattia & Hansen, Lars Gårn & Jensen, Carsten Lynge, 2017. "Households’ hourly electricity consumption and peak demand in Denmark," Applied Energy, Elsevier, vol. 208(C), pages 607-619.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Crowley, Bennevis & Kazempour, Jalal & Mitridati, Lesia, 2025. "How can energy communities provide grid services? A dynamic pricing mechanism with budget balance, individual rationality, and fair allocation," Applied Energy, Elsevier, vol. 382(C).
    2. Meyabadi, A. Fattahi & Deihimi, M.H., 2017. "A review of demand-side management: Reconsidering theoretical framework," Renewable and Sustainable Energy Reviews, Elsevier, vol. 80(C), pages 367-379.
    3. Ray, Manojit & Chakraborty, Basab, 2019. "Impact of evolving technology on collaborative energy access scaling," Renewable and Sustainable Energy Reviews, Elsevier, vol. 110(C), pages 13-27.
    4. Ayu Washizu & Satoshi Nakano & Hideo Ishii & Yasuhiro Hayashi, 2019. "Willingness to Pay for Home Energy Management Systems: A Survey in New York and Tokyo," Sustainability, MDPI, vol. 11(17), pages 1-20, September.
    5. Patrick Ludwig & Christian Winzer, 2022. "Tariff Menus to Avoid Rebound Peaks: Results from a Discrete Choice Experiment with Swiss Customers," Energies, MDPI, vol. 15(17), pages 1-21, August.
    6. Maarten Wolsink, 2020. "Framing in Renewable Energy Policies: A Glossary," Energies, MDPI, vol. 13(11), pages 1-31, June.
    7. Srivastava, Aman & Van Passel, Steven & Kessels, Roselinde & Valkering, Pieter & Laes, Erik, 2020. "Reducing winter peaks in electricity consumption: A choice experiment to structure demand response programs," Energy Policy, Elsevier, vol. 137(C).
    8. Joaquim Dias Garcia & Guilherme Bodin & Alexandre Street, 2024. "BilevelJuMP.jl: Modeling and Solving Bilevel Optimization Problems in Julia," INFORMS Journal on Computing, INFORMS, vol. 36(2), pages 327-335, March.
    9. Candas, Soner & Reveron Baecker, Beneharo & Mohapatra, Anurag & Hamacher, Thomas, 2023. "Optimization-based framework for low-voltage grid reinforcement assessment under various levels of flexibility and coordination," Applied Energy, Elsevier, vol. 343(C).
    10. Azarova, Valeriya & Cohen, Jed J. & Kollmann, Andrea & Reichl, Johannes, 2020. "Reducing household electricity consumption during evening peak demand times: Evidence from a field experiment," Energy Policy, Elsevier, vol. 144(C).
    11. Curtis, John & Brazil, William & Harold, Jason, 2019. "Understanding preference heterogeneity in electricity services: the case of domestic appliance curtailment contracts," Papers WP638, Economic and Social Research Institute (ESRI).
    12. Kapeller, Rudolf & Cohen, Jed J. & Kollmann, Andrea & Reichl, Johannes, 2023. "Incentivizing residential electricity consumers to increase demand during periods of high local solar generation," Energy Economics, Elsevier, vol. 127(PA).
    13. Sridhar, Araavind & Honkapuro, Samuli & Ruiz, Fredy & Stoklasa, Jan & Annala, Salla & Wolff, Annika, 2024. "Residential consumer enrollment in demand response: An agent based approach," Applied Energy, Elsevier, vol. 374(C).
    14. Plain, N. & Hingray, B. & Mathy, S., 2019. "Accounting for low solar resource days to size 100% solar microgrids power systems in Africa," Renewable Energy, Elsevier, vol. 131(C), pages 448-458.
    15. Marko Hočevar & Lovrenc Novak & Primož Drešar & Gašper Rak, 2022. "The Status Quo and Future of Hydropower in Slovenia," Energies, MDPI, vol. 15(19), pages 1-13, September.
    16. Lukas Kriechbaum & Philipp Gradl & Romeo Reichenhauser & Thomas Kienberger, 2020. "Modelling Grid Constraints in a Multi-Energy Municipal Energy System Using Cumulative Exergy Consumption Minimisation," Energies, MDPI, vol. 13(15), pages 1-23, July.
    17. Durmaz, Tunç, 2016. "Precautionary Storage in Electricity Markets," Discussion Papers 2016/5, Norwegian School of Economics, Department of Business and Management Science.
    18. Carsten Helm & Mathias Mier, 2020. "Steering the Energy Transition in a World of Intermittent Electricity Supply: Optimal Subsidies and Taxes for Renewables Storage," ifo Working Paper Series 330, ifo Institute - Leibniz Institute for Economic Research at the University of Munich.
    19. Reinhold Lehneis & Daniela Thrän, 2024. "In 50 Shades of Orange: Germany’s Photovoltaic Power Generation Landscape," Energies, MDPI, vol. 17(16), pages 1-12, August.
    20. Steinegger, Josef & Hammer, Andreas & Wallner, Stefan & Kienberger, Thomas, 2024. "Revolutionizing heat distribution: A method for harnessing industrial waste heat with supra-regional district heating networks," Applied Energy, Elsevier, vol. 372(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:392:y:2025:i:c:s0306261925006622. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.