ree&pqj2

 
Optimal management of cooperative energy communities: impact of agent cooperation

A. Castro-Mérida and S. de la Torre

Department of Electrical Engineering. Escuela de Ingenierías Industriales, Universidad de Málaga (Spain)

 

ftf

2026-01-20


im4

Abstract

In this work we analyse the profitability of the agents participating in a Local Energy Community (LEC); the agents in
these communities can be either passive or active. The main difference is that active agents own generating units that they need to dispatch, whereas passive agents do not own any generating units. The LEC is operated and managed by a coordinating agent that is in charge of all energy exchanges between the agents in the LEC and the external Public Electricity Network (PEN). We propose a general optimization-based mathematical model to study the interactions among all the participants and to foresee strategies and optimal behaviour within the rules of the LEC. With this model we can compute optimal costs, profits, energy purchases and energy sales, assessing the best configuration for the LEC as a whole and for each individual participant.

Key words: Energy communities, agent cooperation, profit allocation, energy regulation, renewable integration.

Published in: Renewable Energies, Environment & Power Quality Journal (REE&PQJ)
ISSUE: Vol. 24. No. 3 Pages: 265-270
E-ISSN: 3020-531 X Date of Current Version: 2026-01-02
REF: 144 Issue Date: 2026-01-26
DOI:10.24084/reepqj24-144 Publisher: AEDERMACP/ EA4EPQ

References

[1] A Wrigley, The path to sustained growth. England’s transition from an organic economy to an industrial revolution.
Cambridge university press, 2016.

[2] ONU, Conference on Human Environment. Appendix IIPrinciples. Stockholm, 1972.

[3] Directive (EU) 2018/2001 of the European Parliament and of the Council of December 2018 on the Promotion of the use of Energy from Renewable Sources.

[4] Directive (EU) 2019/944 of the European Parliament and of the Council of june 2019 concerning common rules for the
internal market in electricity.

[5] Royal Decree 244/2019, of April 5th, 2019, Regulating the Administrative, Technical and Economic Conditions for selfconsumption of Electricity. Ministry for the Ecological Transition and the Demographic Challenge.

[6] C. Gallego-Castillo et al. Self-Consumption for Energy Communities in Spain: a regional analysis under the new legal framework. Energy Policy 150, 2021.

[7] G. Ye, G. Lil, et al. Towards cost minimization with renewable energy sharing in cooperative residential communities. IEEE Access, 2017.

[8] J. Sousa, J. Lagarto et al. Renewable energy communities optimal design supported by an optimization model for
investment in PV/wind capacity and renewable electricity sharing. Energy, 2023.

[9] R. Duvignau, V. Heinisch et al. Benefits of small-size communities for continuous cost-optimization in peer-topeer
energy sharing. Applied Energy Volume 301, 2021.

[10] M. Tostado-Veliz, S. Kamel, et al. Optimal energy management of cooperative energy communities considering
flexible demand, storage and vehicle-to-grid under uncertainties. Sustainable Cities and Society 84, 2022.

[11] R. Rigo-Mariani, S. Mazzoni et al. Impact of the Economic Environment Modelling for the Optimal Design of a Multi-
Energy Microgrid. October 2020. Conference: IECON 2020- 46th Annual Conference of the IEEE Industrial Electronics
Society

[12] Á. Manso-Burgos, D. Ribó-Pérez. Local energy communities modelling and optimisation considering storage, demand
configuration and sharing strategies: A case study in Valencia (Spain). Energy Reports 8, 2022.

[13] N. Tomin, V. Shakirov. Design and optimal energy management of community microgrids with flexible renewable energy sources. Renewable Energy 183, 2022.

[14] A. Diva-Mustika, R. Rigo-Mariani et al. A two-stage management strategy for the optimal operation and billing
in an energy community with collective self-consumption. Applied Energy 310, 2022.

[15] R. Faia, F. Lezama et al. Local electricity markets: A review on benefits, barriers, current trends and future perspectives. Renewable and Sustainable Energy Reviews. Vol. 190, 2024.

[16] N. Li, A. Rudi et al. Cost allocation in integrated community energy systems - A review. Renewable and Sustainable
Energy Reviews. Vol. 144, 2021.

 
logos0
 
br

| Main | Articles | Publication-Regulations | Committees | Publication-Ethics | Open-Access | Fees | Background |

REE&PQJ is edited by:

European Association for the Development of Renewable Energies, Environment and Power Quality (EA4EPQ/AEDERMACP)

ICREPQ

Copyright © 2025 EA4EPQ All rights are reserved