Skip to main content
QUICK REVIEW

[Paper Review] PowerGym: A Reinforcement Learning Environment for Volt-Var Control in Power Distribution Systems

Ting-Han Fan, Xian Yeow Lee|arXiv (Cornell University)|Sep 8, 2021
Optimal Power Flow DistributionEngineering27 references11 citations
TL;DR

PowerGym is an open-source, Gym-compatible reinforcement learning environment for Volt-Var control in radial distribution systems, built on IEEE benchmark networks (13Bus, 34Bus, 123Bus, 8500Node) with customizable physical constraints. It enables fair benchmarking of RL algorithms by supporting scalable, safe, and extensible training with realistic voltage and power loss objectives, validated via PPO and SAC on multiple system variants with quantified trade-offs in control performance.

ABSTRACT

We introduce PowerGym, an open-source reinforcement learning environment for Volt-Var control in power distribution systems. Following OpenAI Gym APIs, PowerGym targets minimizing power loss and voltage violations under physical networked constraints. PowerGym provides four distribution systems (13Bus, 34Bus, 123Bus, and 8500Node) based on IEEE benchmark systems and design variants for various control difficulties. To foster generalization, PowerGym offers a detailed customization guide for users working with their distribution systems. As a demonstration, we examine state-of-the-art reinforcement learning algorithms in PowerGym and validate the environment by studying controller behaviors. The repository is available at \url{https://github.com/siemens/powergym}.

Motivation & Objective

  • To address the lack of standardized, publicly available environments for benchmarking reinforcement learning in distribution system Volt-Var control.
  • To enable fair comparison of RL algorithms across power system researchers by providing a common, open platform based on IEEE benchmark systems.
  • To support real-world deployment by offering a detailed customization guide for integrating proprietary distribution system models.
  • To facilitate generalization and scalability of RL-based control strategies through configurable environmental variations.
  • To validate the environment’s fidelity and utility through systematic RL experiments on state-of-the-art algorithms like PPO and SAC.

Proposed method

  • PowerGym implements a Gym-like API with reset, step, and render functions for seamless integration with existing RL frameworks.
  • It models distribution systems as radial networks using power flow equations (Eq. 1), incorporating physical constraints such as active/reactive power, voltage magnitude, and current magnitude.
  • The environment supports four standard IEEE test systems (13Bus, 34Bus, 123Bus, 8500Node) with configurable variations in load scaling, base voltage violations, and battery state-of-charge penalties.
  • It introduces four key environmental hyperparameters: load scale, base voltage violation, horizon length, and SOC penalty, which modulate control difficulty and realism.
  • The reward function combines power loss minimization, voltage violation penalties, and battery state-of-charge errors to guide policy learning.
  • It enables parallel training via safe, file-constrained execution and provides visualization tools for monitoring controller behavior and system states.

Experimental results

Research questions

  • RQ1How does the design of PowerGym enable fair and reproducible benchmarking of RL algorithms for Volt-Var control in distribution systems?
  • RQ2What is the impact of environmental hyperparameters—such as load scale, base voltage violation, and SOC penalty—on the difficulty and performance of RL agents?
  • RQ3How do different RL algorithms (e.g., PPO and SAC) perform across varying system sizes and environmental configurations in PowerGym?
  • RQ4To what extent does PowerGym’s structure support generalization to real-world, proprietary distribution systems through customization?
  • RQ5What trade-offs emerge between voltage violation reduction and battery activity in high-load environments, and how are they reflected in learning outcomes?

Key findings

  • The cumulative reward of RL agents in PowerGym scales linearly with the horizon length, with h96 achieving roughly four times the cumulative reward of h24 over 20k steps.
  • The 8500Node system exhibits slower convergence than 123Bus under longer horizons due to higher instability and greater voltage violation tendencies.
  • Higher load scaling increases power losses and voltage violations, making environments significantly harder to control, especially in larger systems like 8500Node.
  • A trade-off exists between battery discharge activity and voltage violation: environments with higher battery activity (e.g., s2.5) show lower voltage violations but higher SOC errors.
  • The SOC penalty introduces non-stationary battery behavior, which increases training difficulty, as evidenced by higher SOC error variance in cbat_soc_s2.5 compared to non-penalized variants.
  • The environment’s design successfully supports parallel training and enables meaningful analysis of controller behavior, with PPO and SAC achieving stable learning curves across all test systems.

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.