Abstract
Electrifying remote regions using renewable-powered microgrids presents significant challenges due to the intermittent nature of solar and wind energy. This paper proposes a cooperative Multi-Agent Q-Learning framework to optimize energy storage and distribution. By modeling the microgrid management as a Markov Decision Process (MDP), the system learns to balance local storage usage with power draws from a constrained main grid. Our results show that the reinforcement learning approach significantly reduces the average demand-supply deficit compared to naive greedy strategies, particularly when the main grid provides sufficient baseline capacity.
Introduction
Extending centralized power grids to remote, un-electrified villages is often prohibitively expensive. While localized microgrids utilizing renewable sources like solar and wind offer a sustainable alternative, their inherent unpredictability necessitates intelligent management. Without strategic storage, fluctuations in generation can lead to frequent blackouts during peak demand. Conversely, over-reliance on the main grid can be costly and counterproductive to sustainability goals. This research addresses the coordination of multiple microgrids to minimize the overall power deficit under uncertain weather and demand conditions.
Methodology
The power management problem is formulated as a Markov Decision Process (MDP). The state space includes current power demand and the battery levels of solar and wind microgrids. The action space determines the volume of power to draw from batteries versus the amount requested from the main grid.
Given the uncertainty in renewable generation, a model-free cooperative Multi-Agent Q-Learning approach is employed. Two primary strategies are compared:
- Algorithm 1 (Greedy Baseline): A naive approach where microgrids immediately consume all generated renewable energy and request any remaining deficit from the main grid without utilizing strategic battery storage.
- Algorithm 2 (Multi-Agent Q-Learning): Microgrids share battery level information to form a joint state, learning a joint action policy via an $\epsilon$-greedy strategy. The reward function is designed to penalize the squared difference between demand and supply.
Additionally, a cost-aware variant introduces a tuning parameter ($c$) to the reward function. This parameter penalizes drawing power from the main grid, allowing the system to balance the trade-off between blackout prevention and operational costs.
Experimental Setup
The proposed methods were evaluated in a simulated environment consisting of two microgrids (one solar, one wind) with battery capacities of 5 units each. Renewable generation was modeled as a Poisson process (mean = 2), while power demand followed a Markov process with discrete states (8, 10, and 12 units) and a predefined probability transition matrix.
Results and Discussion
The performance of the Multi-Agent Q-Learning approach is highly dependent on the Maximum Power Allocation (MPA) from the main grid.
As shown in Figure 1, Algorithm 2 significantly outperforms the greedy baseline when the MPA is $\ge 3$. In this regime, the RL agent effectively learns to utilize battery storage to buffer against generation dips. However, when the MPA is very low ($< 3$), the greedy approach performs slightly better. This suggests that when the system is severely power-starved, battery storage offers no strategic advantage as there is insufficient surplus to store.
The cost-aware formulation demonstrates the algorithm's flexibility in multi-objective optimization.
By adjusting the penalty parameter $c$, the system can navigate the Pareto front between minimizing blackouts and minimizing energy costs. As illustrated in Figure 2, increasing the weight of the deficit penalty leads to a predictable decrease in the average deficit at the expense of higher power consumption from the main grid.
Conclusion
This study demonstrates that cooperative Multi-Agent Q-Learning is an effective tool for managing microgrid energy distribution. By sharing state information, microgrids can compensate for individual generation drops. Future work will explore physical power sharing between microgrids and the integration of dynamic, time-of-use pricing models to further enhance the economic viability of remote microgrid systems.
Summary updated