citylearn-project/CityLearn

Official reinforcement learning environment for demand response and load shaping

What it solves

CityLearn provides a standardized environment to test how buildings and energy systems can work together to manage electricity demand. It helps researchers and developers simulate renewable energy communities to optimize costs, energy usage, and service reliability.

How it works

It acts as a Gymnasium environment where you can build simulated energy communities. You define the assets—such as solar panels (PV), batteries, electric vehicles, and flexible loads—and then run controllers to manage how these components interact. The system tracks performance through specific key performance indicators (KPIs) and allows you to compare different control strategies against baseline models.

Who it’s for

This tool is designed for researchers, engineers, and data scientists working on demand response, building energy coordination, and reinforcement learning applications for smart energy grids.

Highlights

  • Supports complex energy configurations including PV, batteries, EVs, and flexible loads.
  • Includes tools for local energy sharing and managing electrical limits.
  • Provides built-in baseline controllers for immediate testing and comparison.
  • Allows for simulation of equipment failures and changing community membership.
  • Offers standardized KPIs to evaluate cost, energy import, and service quality.

Related

  • Project
  • Project
  • Project
  • Project
  • Project