Skip to main content
QUICK REVIEW

[Paper Review] Data-driven battery operation for energy arbitrage using rainbow deep reinforcement learning

Daniel J. B. Harrold, Jun Cao|arXiv (Cornell University)|Jun 10, 2021
Smart Grid Energy ManagementEngineering34 references4 citations
TL;DR

This paper proposes using the Rainbow Deep Q-Network (DQN) reinforcement learning algorithm to optimize battery operation in a microgrid for energy arbitrage, leveraging dynamic pricing and weather-based forecasts. Rainbow outperformed standard DQN, DDPG, and linear programming, with its distributional approach enabling superior learning and interpretability of agent behavior.

ABSTRACT

As the world seeks to become more sustainable, intelligent solutions are needed to increase the penetration of renewable energy. In this paper, the model-free deep reinforcement learning algorithm Rainbow Deep Q-Networks is used to control a battery in a small microgrid to perform energy arbitrage and more efficiently utilise solar and wind energy sources. The grid operates with its own demand and renewable generation based on a dataset collected at Keele University, as well as using dynamic energy pricing from a real wholesale energy market. Four scenarios are tested including using demand and price forecasting produced with local weather data. The algorithm and its subcomponents are evaluated against two continuous control benchmarks with Rainbow able to outperform all other method. This research shows the importance of using the distributional approach for reinforcement learning when working with complex environments and reward functions, as well as how it can be used to visualise and contextualise the agent's behaviour for real-world applications.

Motivation & Objective

  • To develop a data-driven reinforcement learning approach for optimal battery operation in a microgrid to maximize energy arbitrage and renewable energy utilization.
  • To evaluate the performance of the state-of-the-art Rainbow DQN algorithm in comparison to standard DQN and actor-critic benchmarks in complex, real-world energy environments.
  • To investigate the benefits of the distributional reinforcement learning approach (C51) in handling non-deterministic reward functions and improving interpretability of agent decisions.
  • To assess the impact of integrating demand and price forecasting into the RL agent’s state space on control performance and learning efficiency.

Proposed method

  • The study employs the Rainbow DQN algorithm, a model-free deep reinforcement learning method combining multiple DQN improvements, including dueling networks, prioritized experience replay, and distributional Q-learning (C51).
  • The environment simulates a real microgrid at Keele University, incorporating actual demand and renewable generation (solar and wind) data, along with dynamic wholesale electricity pricing.
  • The agent observes a state space including battery state of charge, real-time energy prices, and forecasted demand and prices derived from local weather data.
  • Actions are discrete control commands for charging or discharging the battery, with penalties for exceeding capacity limits to enforce physical constraints.
  • The value distribution is visualized across episodes to interpret how the agent learns and assigns value to different actions under varying environmental conditions.
  • Four scenarios with increasing complexity—varying state and action space sizes—were tested to evaluate scalability and forecasting integration.

Experimental results

Research questions

  • RQ1Can the Rainbow DQN algorithm effectively learn optimal battery control policies for energy arbitrage in a real-world microgrid setting with dynamic pricing and renewable intermittency?
  • RQ2How does the distributional approach (C51) in Rainbow DQN improve learning stability and performance compared to standard DQN in complex energy environments?
  • RQ3To what extent do demand and price forecasts enhance the performance of the RL agent in energy arbitrage tasks?
  • RQ4How does the integration of forecasting data affect the agent’s ability to anticipate price spikes and optimize battery dispatch?

Key findings

  • Rainbow DQN significantly outperformed standard DQN, DDPG, and linear programming benchmarks in all four test scenarios, especially in complex, high-resolution state and action spaces.
  • The distributional approach (C51) enabled the agent to better model non-deterministic reward functions, such as penalties for overcharging or discharging beyond battery limits.
  • Value distribution visualization revealed that the agent learned to associate high returns with specific actions—such as discharging before peak price periods—demonstrating effective temporal planning.
  • The integration of forecasted demand and price data led to the most significant performance improvement, particularly for the Rainbow agent, which effectively leveraged this information for better decision-making.
  • The subcomponents of Rainbow (e.g., prioritized experience replay, dueling networks) worked synergistically, enhancing learning efficiency and robustness across diverse scenarios.
  • Despite its continuous action space, the DDPG agent underperformed compared to Rainbow DQN, indicating that the distributional and value-based approach of Rainbow provided superior learning stability and performance.

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.