Skip to main content
QUICK REVIEW

[Paper Review] PowerGridworld: A Framework for Multi-Agent Reinforcement Learning in Power Systems

David Biagioni, Xiangyu Zhang|arXiv (Cornell University)|Nov 10, 2021
Smart Grid Energy ManagementEngineering7 citations
TL;DR

PowerGridworld is an open-source, lightweight framework that enables rapid prototyping of multi-agent reinforcement learning (MARL) environments for power systems by integrating grid-aware components and power flow solutions. It supports customizable, heterogeneous agents and seamless integration with RLLib and OpenAI Gym, demonstrating successful training of MARL policies using PPO and MADDPG in complex, real-world power system scenarios.

ABSTRACT

We present the PowerGridworld software package to provide users with a lightweight, modular, and customizable framework for creating power-systems-focused, multi-agent Gym environments that readily integrate with existing training frameworks for reinforcement learning (RL). Although many frameworks exist for training multi-agent RL (MARL) policies, none can rapidly prototype and develop the environments themselves, especially in the context of heterogeneous (composite, multi-device) power systems where power flow solutions are required to define grid-level variables and costs. PowerGridworld is an open-source software package that helps to fill this gap. To highlight PowerGridworld's key features, we present two case studies and demonstrate learning MARL policies using both OpenAI's multi-agent deep deterministic policy gradient (MADDPG) and RLLib's proximal policy optimization (PPO) algorithms. In both cases, at least some subset of agents incorporates elements of the power flow solution at each time step as part of their reward (negative cost) structures.

Motivation & Objective

  • Address the lack of standardized, flexible environments for training multi-agent reinforcement learning (MARL) policies in heterogeneous power systems.
  • Enable rapid prototyping of customized, grid-interactive MARL simulations with component-level control and system-level constraints.
  • Support integration with existing MARL training frameworks like RLLib and OpenAI Gym to accelerate research and deployment.
  • Facilitate the development of decentralized, data-driven control policies for future resilient and efficient energy systems.
  • Provide a bring-your-own-model approach that allows researchers to plug in custom device models and reward structures while maintaining grid physics fidelity.

Proposed method

  • Design a modular, extensible Gym-based API for multi-agent environments with support for both single- and multi-component agents.
  • Integrate power flow solutions (via OpenDSS) at each control step to compute grid-level variables such as bus voltages and power flows.
  • Define agent-specific observation spaces and reward functions that incorporate power flow results, including soft constraints on voltage and power limits.
  • Use a user-defined control step interval to simulate real-time or sub-hourly grid dynamics, enabling realistic simulation of distribution feeders.
  • Implement agent reward functions that balance local objectives (e.g., thermal comfort, load shifting) with grid-supportive goals (e.g., voltage regulation, peak load reduction).
  • Leverage RLLib and OpenAI’s MADDPG for training independent MARL policies, with loss functions based on proximal policy optimization (PPO) and advantage clipping.

Experimental results

Research questions

  • RQ1Can a modular, open-source framework accelerate the development of multi-agent RL policies for complex, heterogeneous power systems?
  • RQ2How effectively can MARL policies be trained when agent rewards depend on real-time power flow solutions and grid constraints?
  • RQ3To what extent does loose coupling through shared grid variables (e.g., minimum bus voltage) affect training stability and convergence in MARL?
  • RQ4Can PowerGridworld support diverse agent types—such as buildings, PV arrays, and EV charging stations—within a single, unified simulation environment?
  • RQ5How well does the framework integrate with high-performance computing and existing MARL training pipelines like RLLib and OpenAI Gym?

Key findings

  • PowerGridworld successfully enables the creation of heterogeneous, grid-interactive MARL environments with integrated power flow solutions using OpenDSS.
  • Training independent PPO policies for agents with grid-dependent rewards (e.g., voltage constraints) converged stably without significant nonstationarity issues.
  • The framework supports diverse agent types, including a smart building with thermal control, a controllable PV array, and an EV charging station with dynamic load profiles.
  • The reward functions effectively balance local objectives (e.g., thermal comfort, charging demand) with grid-supportive goals (e.g., peak load reduction, voltage regulation).
  • Integration with RLLib allowed scalable training using high-performance computing resources, demonstrating compatibility with production-grade MARL pipelines.
  • The framework’s modular design and Gym API enable rapid experimentation with novel component models and MARL algorithms in power system contexts.

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.