Learning a Distributed Control Scheme for Demand Flexibility in Thermostatically Controlled Loads

Bingqing Chen, Weiran Yao, Jonathan Francis, Mario Bergés

Presented at the 2020 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), this research introduces a novel distributed control architecture designed to manage "demand flexibility." This concept refers to the ability of buildings to shift their energy consumption patterns to help balance the power grid, particularly as intermittent renewable energy sources like solar and wind become more prevalent.

The Challenge: Managing Heterogeneous Demand

As the grid transitions toward green energy, supply becomes less predictable. To maintain stability without relying on carbon-intensive "peaker" plants, the demand side must become flexible. Thermostatically Controlled Loads (TCLs), such as air conditioners and water heaters, are ideal candidates for this because of their "thermal inertia." A building can pause its AC for short periods without significantly impacting occupant comfort, effectively acting as a "virtual battery."

However, controlling thousands of unique buildings presents significant hurdles:

  1. Scalability: The state-action space for thousands of individual units is computationally massive.
  2. Heterogeneity: Every building has distinct insulation properties, occupancy schedules, and equipment types.
  3. Conflicting Objectives: Controllers must balance grid-level cost savings with local resident comfort and peak demand reduction.

A Distributed Control Architecture

The authors propose a hybrid architecture that decouples high-level grid optimization from local building physics. This approach splits the control problem into two distinct layers.

Overview of the distributed control architecture, showing the central aggregator (b) and building-level control (c) within a heterogeneous cluster (a).

1. The Central Aggregator (The Planner)

Instead of micro-managing every individual device, a central aggregator monitors the predicted total grid load. It employs Natural Evolutionary Strategies (NES)—a gradient-free optimization algorithm—to learn a target load profile. The aggregator then determines how much of the necessary load-shifting burden should be assigned to each building cluster.

2. Building-Level Controllers (The Executors)

Each building receives a specific power reduction or increase target. It then solves a local Quadratic Program (QP) to meet that target while maintaining comfort. By modeling the building's thermal mass as a Virtual Battery, the researchers transform a complex thermodynamic problem into a standard optimization task that can be solved in milliseconds.

Predictive Modeling for Future Demand

Effective demand response requires accurate forecasting. The system utilizes Seq2Seq (GRU-based) neural networks equipped with attention mechanisms to predict electricity demand and solar generation over a 12-hour horizon. This allows the aggregator to plan for upcoming peaks or surpluses in renewable generation.

Architecture of the Seq2Seq electric load predictor, utilizing GRU layers and an attention mechanism to forecast demand.

Key Results and Insights

The study was validated using the CityLearn environment, an OpenAI Gym-compatible simulation for demand response. The researchers tested the system across four different climate zones using a year of simulation data.

  • Significant Cost Savings: The proposed scheme achieved a 16.8% average reduction in environmental and grid costs (a composite metric including peak demand and ramping) compared to standard Rule-Based Controllers (RBC).
  • Superior Ramping Control: The system excelled at reducing "ramping"—the rate at which power plants must adjust their output—achieving up to a 45% reduction in some scenarios.
  • Sample Efficiency: Unlike "model-free" reinforcement learning algorithms (like PPO or TD3) which require millions of training steps, this hybrid approach outperformed baselines in its very first epoch by leveraging domain knowledge through the Virtual Battery model.

Conclusion

By combining the scalability of Evolutionary Strategies with the physical precision of Model Predictive Control, this research demonstrates a practical path toward large-scale demand response. While the current model uses simplified linear thermal storage, it proves that treating buildings as flexible grid assets can significantly reduce the cost and environmental impact of balancing a modern power grid.

Summary updated

Abstract

Demand flexibility is increasingly important for power grids, in light of growing penetration of renewable generation. Careful coordination of thermostatically controlled loads (TCLs) can potentially modulate energy demand, decrease operating costs, and increase grid resiliency. However, it is challenging to control a heterogeneous population of TCLs: the control problem has a large state action space; each TCL has unique and complex dynamics; and multiple system-level objectives need to be optimized simultaneously. To address these challenges, we propose a distributed control solution, which consists of a central load aggregator that optimizes system-level objectives and building-level controllers that track the load profiles planned by the aggregator. To optimize our agents' policies, we draw inspirations from both reinforcement learning (RL) and model predictive control. Specifically, the aggregator is updated with an evolutionary strategy, which was recently demonstrated to be a competitive and scalable alternative to more sophisticated RL algorithms and enables policy updates independent of the building-level controllers. We evaluate our proposed approach across four climate zones in four nine-building clusters, using the newly-introduced CityLearn simulation environment. Our approach achieved an average reduction of 16.8% in the environment cost compared to the benchmark rule-based controller.
BibTeX
@inproceedings{chen2020learning,
  author = {Bingqing Chen and Weiran Yao and Jonathan Francis and Mario Bergés},
  title = {{Learning a Distributed Control Scheme for Demand Flexibility in Thermostatically Controlled Loads}},
  booktitle = {SmartGridComm},
  year = {2020},
  url = {https://openreview.net/forum?id=ja-bMO8mPlx},
}
Figure