Introduction
Renewable Energy Communities (RECs) represent a paradigm shift in local energy management, allowing neighbors to share locally produced green energy. While RECs reduce total energy consumption from the grid, they face a significant financial hurdle: network "peak fees." These charges are based on the single highest point of power demand or injection during a billing period. This paper introduces an optimal control framework using Model Predictive Control (MPC) and Reinforcement Learning (RL) to manage controllable assets like batteries, specifically targeting these costly peaks.
The Problem: Managing Power Peaks
Most existing battery control strategies focus on simple self-consumption—using solar energy as it is produced. However, these strategies often ignore the massive financial impact of power peaks. Minimizing these peaks requires a centralized "Energy Community Manager" (ECM) to make complex, look-ahead decisions about when to charge or discharge batteries across multiple members simultaneously.
As shown in the timeline above, the challenge lies in the mismatch between short-term market periods and the long-term billing cycle. A single high-demand event at any point in the month can dictate the entire month's peak fee, necessitating a control strategy that considers the entire billing horizon.
Methods: MPC and RL
The authors formulate the REC control problem as a Partially Observable Markov Decision Process (POMDP) and compare two primary advanced approaches:
- Model Predictive Control (MPC): This approach solves a Mixed-Integer Linear Program (MILP) at every time step. It utilizes forecasts to find the mathematically optimal sequence of battery actions over a future horizon.
- Reinforcement Learning (RL): Specifically using the Proximal Policy Optimization (PPO) algorithm. The RL agent learns a policy by simulating thousands of scenarios, using recurrent layers (LSTM/GRU) to account for past energy usage patterns.
To address the "sparse reward" problem—where the final bill is only known at the end of the month—the researchers implemented "reward densification," providing the RL agent with estimated intermediate bills to improve learning speed and stability.
Key Results and Insights
The study evaluated these algorithms on a realistic community of seven members (REC-7) based on historical data from Wallonia, Belgium.
- The "Peak" Matters Most: Ignoring peak fees in control logic leads to significantly higher total costs. Even sophisticated algorithms are inefficient if they do not explicitly target peak shaving.
- Computational Efficiency: MPC provides high precision but scales poorly as community size increases. In contrast, the RL policy, once trained, can make decisions in near-instantaneous time (~10⁻⁴ seconds), making it ideal for real-time deployment in larger communities.
- Foresight Sensitivity: MPC performance is highly dependent on forecast accuracy. In scenarios with high uncertainty, RL approaches—which learn to handle variability through simulation—can become more competitive.
Conclusion
Effective management of Renewable Energy Communities requires moving beyond simple self-consumption to strategic peak shaving. While MPC offers a theoretical upper bound on performance for small groups, Reinforcement Learning provides a scalable, computationally efficient alternative for managing the complex, multi-member dynamics of real-world energy communities.
Summary updated