English

Learning Prosumer Behavior in Energy Communities: Integrating Bilevel Programming and Online Learning

Optimization and Control 2025-01-31 v1

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.

Keywords

Cite

@article{arxiv.2501.18017,
  title  = {Learning Prosumer Behavior in Energy Communities: Integrating Bilevel Programming and Online Learning},
  author = {Bennevis Crowley and Jalal Kazempour and Lesia Mitridati and Mahnoosh Alizadeh},
  journal= {arXiv preprint arXiv:2501.18017},
  year   = {2025}
}
R2 v1 2026-06-28T21:24:44.286Z