Learning a Multi-Agent Controller for Shared Energy Storage System

Ruohong Liu, Yize Chen · DOI

Abstract

Managing Shared Energy Storage Systems (SESS) alongside residential HVAC loads presents a complex optimization challenge characterized by time-coupled dynamics and environmental uncertainty. This paper presents a distributed Multi-Agent Reinforcement Learning (MARL) framework designed to coordinate energy dispatch between a community battery and individual building climate control systems. By utilizing a Multi-Agent Deep Deterministic Policy Gradient (MADDPG) approach, the system achieves significant energy cost savings—up to 21.58%—while maintaining strict indoor thermal comfort. Crucially, the framework operates without the need for centralized coordination or perfect future knowledge, addressing key privacy and scalability concerns in smart grid management.

Introduction

As the global energy grid integrates higher proportions of intermittent renewable sources, energy storage has become a critical component for maintaining grid resilience. While individual home battery systems are often cost-prohibitive, Shared Energy Storage Systems (SESS) offer a more economical community-level alternative. However, the effective management of an SESS is complicated by several factors: the complex thermal dynamics of buildings, the volatility of electricity prices and weather, and the privacy concerns associated with centralized control systems that require access to granular household data.

This research addresses these challenges by proposing a distributed control architecture where agents learn to make high-performance power dispatch decisions in real-time based only on local state information.

Methodology

Multi-Agent Reinforcement Learning Framework

The researchers employ the Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm. This framework follows a "centralized training, decentralized execution" paradigm. During the training phase, agents have access to global information (the states and actions of other agents) to learn cooperative behaviors. During the execution phase, however, each agent operates independently, relying solely on its local observations to make decisions.

Agent Roles and Reward Shaping

The system is modeled with two distinct types of agents:

  1. SESS Agent: Responsible for managing the community battery. It decides when to charge from the grid based on price signals. Its reward function is tied to "arbitrage"—purchasing power when prices are lower than a historical moving average—and includes a penalty for residual energy at the end of a cycle to minimize waste.
  2. Building Agents: Each building is controlled by an individual agent that manages HVAC power consumption. These agents must decide whether to draw power from the grid or the SESS. Their rewards are based on minimizing energy costs and maintaining indoor temperatures within a specified comfort range.

Modeling and Simulation

To ensure realistic simulations, buildings are modeled using Thermal Resistor-Capacitor (RC) networks, which capture the nuances of indoor temperature fluctuations. The framework was tested using four years of real-world electrical consumption, pricing, and weather data from Spain (sourced from Kaggle). The evaluation spanned three seasonal scenarios: Winter (constant heating), Spring (mixed demand), and Summer (constant cooling).

Key Insights and Results

Performance vs. Centralized Baselines

A significant finding of this study is that the distributed MARL approach outperformed centralized RL baselines. In centralized RL, the state and action spaces grow exponentially with the number of agents—a phenomenon known as the "curse of dimensionality"—which often leads to poor convergence. The distributed MADDPG approach avoids this by allowing agents to specialize in local tasks while maintaining implicit coordination.

Cost Efficiency and Thermal Comfort

The proposed method demonstrated superior performance across all test cases:

  • Cost Savings: The MARL framework achieved energy cost reductions ranging from 2.37% to 21.58% compared to a baseline without SESS.
  • Heuristic Comparison: In complex scenarios like Spring (Case 2), the MARL method's energy costs were nearly half those of a standard heuristic scheme, which struggled to adapt to volatile price and temperature patterns.
  • Comfort Maintenance: Despite the focus on cost-saving, the agents maintained high thermal comfort, with an average temperature deviation of less than 0.4°C from the target.

Communication-Free Coordination

By utilizing historical moving averages of prices, the SESS agent can determine if current electricity is "cheap" without requiring perfect future forecasts. This allows the system to achieve high levels of coordination without requiring real-time communication between buildings and the storage system, preserving resident privacy and reducing network overhead.

Conclusion and Future Work

This research demonstrates that MARL is a highly effective tool for managing community-level energy resources. By decentralizing the decision-making process, the framework provides a scalable, privacy-preserving solution that significantly reduces costs while ensuring user comfort.

Future research will focus on scaling this framework to larger communities with dozens or hundreds of buildings and refining the RL algorithms to handle the noisier dynamics found in diverse, real-world building architectures beyond simplified RC models.

Summary updated

BibTeX
@misc{liu2023learning,
  author = {Ruohong Liu and Yize Chen},
  title = {{Learning a Multi-Agent Controller for Shared Energy Storage System}},
  year = {2023},
  eprint = {2302.08328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.08328},
}
Figure