This repository contains the code for the numerical study presented in "How Can Energy Communities Provide Grid Services? A Dynamic Pricing Mechanism with Budget Balance, Individual Rationality, and Fair Allocation" is currently under review at Electric Power Systems Research.
To run the code successfully, please go ahead and run the file main.jl
The code for the nodal case study is taken from https://github.com/wdvorkin/DP_CC_OPF