Co-designing Intelligent Control of Building HVACs and Microgrids

Rumia Masburah, Sayan Sinha, Rajib Lochan Jana, Soumyajit Dey, Qi Zhu

Abstract

Building HVAC systems and renewable microgrids are typically managed as separate entities, leaving significant energy savings on the table. This paper proposes co-designing the control of both systems using Deep Reinforcement Learning (DRL). By framing the problem as a Markov Decision Process and employing the Deep Deterministic Policy Gradient (DDPG) algorithm, the study demonstrates that a model-free DRL approach can outperform traditional Model Predictive Control (MPC) in both energy cost reduction and occupant comfort, without requiring complex building-specific thermal models.

Introduction

In developed countries, building loads consume approximately 40% of total energy, with Heating, Ventilation, and Air Conditioning (HVAC) systems representing the largest portion. To mitigate this, buildings are increasingly integrating renewable-based microgrids featuring solar panels, battery storage, and diesel generators.

Traditionally, microgrid control and building energy management are treated as isolated optimization problems. Microgrid control focuses on balancing generation and storage to minimize costs, while building management regulates HVAC air flow for comfort. However, since microgrid efficiency depends on HVAC demand, co-optimization is essential. Traditional Model Predictive Control (MPC) for this task requires highly accurate thermal models, which are difficult and expensive to develop. This research explores using Deep Reinforcement Learning (DRL) to bypass these modeling hurdles and achieve real-time joint optimization.

Methodology

The researchers frame the co-optimization as a Markov Decision Process (MDP) and evaluate three control architectures based on system information availability:

  1. Fully Known System (Baseline MPC): Utilizes complete knowledge of grid and building thermal models.
  2. Partially Known System (Combo): Employs MPC for the building (known model) and DRL for the microgrid (unknown parameters), with DRL tuning high-level MPC parameters.
  3. Fully Unknown System (Pure DRL): Uses a model-free DDPG agent to directly control both the microgrid and HVAC actuators.
System architecture of the integrated microgrid and building energy management system.

The DDPG agent observes states such as battery charge, grid prices, and temperatures, aiming to minimize costs while maintaining comfort. Training utilized real-world weather data from Kolkata, dynamic pricing from the Indian Energy Exchange, and building simulations via OpenModelica to capture realistic thermal dynamics.

Key Results

The pure DRL model consistently outperformed both the baseline MPC and the hybrid "Combo" model across a 24-hour testing period.

  • Power Consumption: DRL achieved the lowest average usage at 1.384 kW, compared to 1.496 kW for MPC and 2.035 kW for the Combo model.
  • Temperature Accuracy: DRL maintained setpoints more effectively, with an RMSE of 1.506°C versus MPC's 1.602°C and the Combo model's 2.180°C.
  • Stability: DRL exhibited lower temperature standard deviation (5.909 vs. 6.025 for MPC), indicating a more stable indoor environment.
Comparison of temperature RMSE across different control strategies for Zone-7.

Discussion and Insights

A primary takeaway is that model-free DRL can surpass model-heavy MPC by learning complex thermodynamics through experience. This eliminates the need for engineers to develop bespoke thermal models for every building. Interestingly, the hybrid "Combo" approach performed worst, suggesting that direct DRL control is more efficient than using DRL to supervise an underlying MPC. DRL also provided smoother temperature transitions, avoiding the rigid fluctuations sometimes seen in mathematically rigid MPCs.

While effective, DRL requires careful exploration strategies and retraining for new environments. Future work aims to implement the Twin Delayed Deep Deterministic Policy Gradients (TD3) algorithm to further enhance stability and efficiency by reducing overestimation bias in Q-learning.

Summary updated

BibTeX
@inproceedings{masburah2021co,
  author = {Rumia Masburah and Sayan Sinha and Rajib Lochan Jana and Soumyajit Dey and Qi Zhu},
  title = {{Co-designing Intelligent Control of Building HVACs and Microgrids}},
  booktitle = {DSD},
  year = {2021},
  doi = {10.1109/dsd53832.2021.00075},
}
Figure