Learning prosumer behavior in energy communities: Integrating bilevel programming and online learning
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. • An algorithm integrating bilevel programming into the bandit framework is proposed. • Prosumer behavior in an energy community is learned by sending price signals and observing user responses. • The algorithm demonstrates rapid learning with low regret in a numerical case study.
Authors
- Jalal Kazempour (ORCID: https://orcid.org/0000-0002-5050-6611)
- Lesia Mitridati (ORCID: https://orcid.org/0000-0003-0060-5969)
- Bennevis Crowley (ORCID: https://orcid.org/0000-0002-9080-3151)
- Mahnoosh Alizadeh
Institutions
- University of California, Santa Barbara (US)
- Technical University of Denmark (DK)
Publication Details
- Journal
- Applied Energy
- Published
- 2025-05-06
- DOI
- https://doi.org/10.1016/j.apenergy.2025.125932
- Primary Topic
- Smart Grid Energy Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00