Abstract
We consider the problem of energy management in microgrid networks. A microgrid is capable of generating a limited amount of energy from a renewable resource and is responsible for handling the demands of its dedicated customers. Owing to the variable nature of renewable generation and the demands of the customers, it becomes imperative that each microgrid optimally manages its energy. This involves intelligently scheduling the demands at the customer side, selling (when there is a surplus) and buying (when there is a deficit) the power from its neighboring microgrids depending on its current and future needs. Typically, the transaction of power among the microgrids happens at a pre-decided price by the central grid. In this work, we formulate the problems of demand and battery scheduling, energy trading and dynamic pricing (where we allow the microgrids to decide the price of the transaction depending on their current configuration of demand and renewable energy) in the framework of stochastic games. Subsequently, we propose a novel approach that makes use of independent learners Deep Q-learning algorithm to solve this problem. Through extensive empirical evaluation, we show that our proposed framework is more beneficial to the majority of the microgrids and we provide a detailed analysis of the results.
Introduction
Microgrids (MGs) are small-scale power systems that generate renewable energy (solar, wind) to meet local demand. However, renewable generation is intermittent, and consumer demand fluctuates. To stay stable and profitable, MGs must decide when to store energy, when to fulfill flexible "Activities of Daily Living" (ADL) loads (like running a dishwasher), and when to buy or sell power. Existing solutions often rely on fixed market prices or centralized optimization, which limits the autonomy of individual microgrids. This paper addresses the gap in integrated models that handle both demand-side management (scheduling flexible loads) and supply-side management (dynamic pricing and trading) simultaneously in a decentralized, competitive environment.
Methodology
The interaction between microgrids is formulated as a Stochastic Game. In this framework, each microgrid acts as an independent learner aiming to maximize its long-term discounted reward.
The Dual-Network Architecture
The core innovation is the use of two separate Deep Q-Networks (DQN) for each microgrid: the ADL Agent for demand-side scheduling and the ET Agent for energy trading and supply-side decisions.
These two agents share a common reward function, which penalizes unfulfilled demands and rewards profits from energy sales. This "sequential learning" approach reduces the complexity of the action space, making it easier for the models to converge compared to a single, massive network.
Trading Logic
The model uses a competitive "leader" mechanism: the microgrid quoting the lowest price sells its surplus first to buyers. If local MGs cannot fulfill the demand, the central grid acts as a backup, though at less favorable prices.
Experimental Setup
The study uses synthetic data generated by RAPsim. Renewable generation data were fitted to a Poisson distribution to sample energy units. The authors tested three setups: a simple 3-microgrid system for basic dynamics, an 8-microgrid system facing an energy deficit (Setup 2), and an 8-microgrid system with an energy surplus (Setup 3).
Results and Discussion
Through extensive empirical evaluation, the proposed framework demonstrated significant advantages over traditional models.
Key Findings
- Profitability and Convergence: In the 8-microgrid simulations, the Dynamic Pricing Policy (DPP) outperformed the Constant Pricing Policy (CPP) for the majority of participants. All microgrids successfully converged to policies yielding higher rewards than random exploration.
- Dynamic Pricing as a Catalyst: By allowing MGs to set their own prices, the system encourages local trading over central grid reliance, retaining more value within the local network.
- Intelligent Load Shifting: The ADL agent successfully learned to "shift" flexible consumption to times when renewable generation is high or trading prices are low, contributing to overall grid stability.
Conclusion and Future Work
This work introduces a novel MARL framework for decentralized energy management in microgrids. While the results are promising, future work could incorporate formal auction mechanisms for negotiation, address scalability for larger networks, and explore the effects of limited information sharing on the game's equilibrium.
Summary updated