Data-driven adaptive building thermal controller tuning with constraints: A primal-dual contextual Bayesian optimization approach

Wenjie Xu, Bratislav Svetozarevic, Loris Di Natale, Philipp Heer, Colin N. Jones

TL;DR

This paper introduces PDCBO, a novel data-driven approach for adaptively tuning building thermal controllers. PDCBO effectively balances energy savings and occupant comfort by learning from daily environmental contexts and optimizing controller parameters online, outperforming existing methods in simulations.

What Problem Does This Paper Address?

Buildings are significant energy consumers, and optimizing their thermal control is crucial for both energy efficiency and occupant comfort. Traditional building controllers, often simple rule-based systems like PI controllers, have their parameters manually set and fixed, leading to suboptimal performance and an inability to adapt to changing conditions like weather or occupant preferences. While advanced methods exist, they can be complex or require extensive data. This paper tackles the challenge of adaptively tuning these controllers in real-time to minimize energy consumption while ensuring occupant comfort, even when faced with dynamic environmental factors and constraints.

Methods

The core of this work is the Primal-Dual Contextual Bayesian Optimization (PDCBO) approach. This method frames the controller tuning as an online constrained black-box optimization problem. Here's a breakdown:

  • Bayesian Optimization (BO): PDCBO leverages BO's ability to efficiently learn from limited data by building a probabilistic model (using Gaussian Processes) of the relationship between controller parameters and performance metrics (energy consumption and thermal discomfort).
  • Contextual Information: It incorporates daily environmental context (forecasted ambient temperature, solar irradiation, and initial room temperature) to make more informed parameter choices.
  • Primal-Dual Formulation: To handle constraints (e.g., maximum daily discomfort), PDCBO uses a primal-dual optimization framework. This allows it to adaptively adjust the "weight" or penalty associated with violating constraints, enabling a more flexible trade-off between objectives.
  • Adaptive Tuning: Unlike static methods, PDCBO tunes controller parameters (PI gains, daytime setpoint, pre-heating time) daily, allowing it to respond to time-varying conditions and preferences.

Datasets

The paper uses simulated data from a digital twin of a room in the 'Urban Mining and Recycling' (UMAR) unit. This simulator is based on a Physically Consistent Neural Network (PCNN) model. Real-world weather data from the NEST building in Empa, Zurich, was used to generate the contextual inputs for the simulation.

Key Insights and Ideas

  • Adaptive Control is Key: The study strongly suggests that adaptive controller parameters, informed by daily environmental context, are essential for achieving significant energy savings and maintaining comfort, far beyond what static parameters can offer.
  • Balancing Act: PDCBO's primal-dual approach provides a sophisticated way to balance competing objectives (energy vs. comfort). By adaptively adjusting constraint penalties, it can intelligently exploit allowable discomfort to save more energy.
  • Tracking Dynamic Constraints: The ability of PDCBO to track time-varying comfort thresholds is a significant advantage, reflecting real-world scenarios where occupant needs or preferences might change.
  • Context Matters: Incorporating contextual information like weather forecasts allows for more precise and efficient optimization, leading to better performance than methods that ignore these factors.

Key Results

  • Energy Savings: PDCBO demonstrated up to 4.7% energy savings compared to state-of-the-art safe Bayesian optimization methods while keeping daily thermal discomfort below a user-defined threshold.
  • Discomfort Management: In a scenario where minimizing discomfort was the goal with a fixed energy budget, PDCBO reduced average discomfort by up to 63% compared to SafeOPT, while staying within the energy budget.
  • Time-Varying Thresholds: PDCBO successfully tracked time-varying discomfort thresholds, a capability lacking in baseline methods.
  • Comparison to Baselines: PDCBO consistently outperformed SafeOPT (which was overly cautious) and CEI (which was overly aggressive and violated constraints) in achieving a good balance between energy savings and comfort.

Limitations and Future Work

  • Simulation-Based: The current study relies on simulations. While the simulator is based on a physically consistent model, real-world deployment might reveal additional challenges.
  • Single Zone: The current work focuses on a single room. Extending the approach to multi-zone buildings, which are more complex and interconnected, is a natural next step.
  • Grey-Box Nature: The authors suggest that exploiting the "grey-box" nature of the energy and discomfort functions (which are integrations of black-box functions) could further improve sample efficiency.
  • Multi-Zone Extension: Investigating multi-zone building controller tuning, potentially using advanced grey-box BO methods, is highlighted as a promising future direction.

Summary updated

BibTeX
@misc{xu2023data,
  author = {Wenjie Xu and Bratislav Svetozarevic and Loris Di Natale and Philipp Heer and Colin N. Jones},
  title = {{Data-driven adaptive building thermal controller tuning with constraints: A primal-dual contextual Bayesian optimization approach}},
  year = {2023},
  eprint = {2310.00758},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00758},
}
Figure