Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning-based Energy Trading for Microgrids

Liang Xiao, Xingyu Xiao|arXiv (Cornell University)|Jan 19, 2018
Microgrid Control and OptimizationEngineering23 references32 citations
TL;DR

This paper proposes a deep Q-network (DQN)-based reinforcement learning framework for energy trading in microgrids (MGs), enabling MGs to autonomously optimize energy buying/selling decisions using local predictions of renewable generation, demand, battery levels, and trading history. The DQN approach reduces reliance on the main power grid by 24–25% and increases MG utility by up to 29.7% compared to benchmark Q-learning strategies, with performance gains validated using real-world wind and electricity price data.

ABSTRACT

With the time-varying renewable energy generation and power demand, microgrids (MGs) exchange energy in smart grids to reduce their dependence on power plants. In this paper, we formulate an MG energy trading game, in which each MG trades energy according to the predicted renewable energy generation and local energy demand, the current battery level, and the energy trading history. The Nash quilibrium (NE) of the game is provided, revealing the conditions under which the local energy generation satisfies the energy demand of the MG and providing the performance bound of the energy trading scheme. We propose a reinforcement learning based MG energy trading scheme that applies the deep Q-network (DQN) to improve the utility of the MG for the case with a large number of the connected MGs. Simulations are performed for the MGs with wind generation that are aware of the electricity prices and the historic energy trading, showing that this scheme significantly reduces the average power plant schedules and improves the utility of the MG compared with the benchmark strategy.

Motivation & Objective

  • To address the challenge of decentralized, dynamic energy trading in microgrids with uncertain renewable generation and demand.
  • To reduce microgrid reliance on external power plants through intelligent, adaptive energy trading strategies.
  • To develop a scalable reinforcement learning solution that does not require full knowledge of other MGs' energy generation or demand models.
  • To improve microgrid utility and energy self-sufficiency by leveraging historical trading data and real-time state information.

Proposed method

  • Formulates MG energy trading as a Markov decision process (MDP), where each MG acts as an agent optimizing energy trades based on predicted renewable output, local demand, battery state, and trading history.
  • Introduces a Nash equilibrium (NE) framework to analyze strategic trading behavior and establish conditions under which local energy generation can satisfy local demand.
  • Employs deep Q-network (DQN) with a convolutional neural network (CNN) to estimate Q-values in high-dimensional state-action spaces, enabling sample-efficient learning in large-scale MG networks.
  • Uses a double DQN loss function with minibatch gradient descent to stabilize training, minimizing the Bellman error between target and current Q-value estimates.
  • Applies experience replay and target network techniques to improve training stability and convergence in the DQN algorithm.
  • Trains the DQN agent using real historical data from Hong Kong (wind speed) and ISO New England (electricity prices), with battery capacity and price ratios as key system parameters.

Experimental results

Research questions

  • RQ1Under what conditions can a microgrid fully satisfy its local energy demand using only local renewable generation and peer-to-peer trading?
  • RQ2How does the Nash equilibrium in the proposed energy trading game reflect the interplay between electricity prices, renewable generation, demand, and battery levels?
  • RQ3To what extent can a DQN-based agent reduce dependence on the main power grid without prior knowledge of other MGs’ generation or demand profiles?
  • RQ4How does the DQN-based strategy compare in performance to a benchmark Q-learning approach in terms of power plant scheduling and MG utility?
  • RQ5What impact do battery capacity and electricity price ratios have on the effectiveness of the DQN-based energy trading policy?

Key findings

  • The DQN-based energy trading scheme reduces the average power plant schedule by 24% during peak nighttime hours (8:00 PM–12:00 PM) compared to the benchmark Q-learning strategy.
  • With a battery capacity increase from 400 kWh to 600 kWh, the DQN scheme reduces power plant scheduling by 25% compared to the benchmark, demonstrating improved energy storage utilization.
  • The DQN approach increases the average MG utility by 29.7% during low-demand hours (00:00–04:00 AM) compared to the benchmark strategy.
  • As the price ratio increases from 0.1 to 0.5, the DQN-based scheme reduces power plant dependence by 24%, showing strong responsiveness to price signals.
  • The DQN strategy improves MG utility by 22.8% when battery capacity increases from 400 to 600 kWh, outperforming the benchmark by 21.9% in this scenario.
  • Overall, the DQN-based approach reduces power plant scheduling by 12.7% and increases MG utility by 22.3% on average compared to the benchmark Q-learning method.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.