Code for numerical case study in paper "Learning Prosumer Behavior for Grid Service Provision from an Energy Community: Integrating Online Learning and Bilevel Programming"
To run the numerical case study use the file main.jl
The functions for the optimization problem and distribution updates can be seen in the file TS.jl