A bi-level formulation to help aggregators size Energy Communities: a proposal for virtual and physical Closed Distribution Systems | Publicación