cs.AINov 25, 2026

Should Service Requirements Be Scalarized or Constrained When Minimizing Costs? A Case Study on HVAC Control

Authors: Tai-You Chen, Mihael Mohorcic, Blaz Bertalanic, Carolina Fortuna

Organizations: Department of Communication Systems, Jožef Stefan Institute, Ljubljana, Slovenia

Abstract

Automated decision systems, from learned policies to model-based optimizers, often minimize costs such as energy or resource use while meeting a service requirement, for example the quality of service (QoS) specified in a service level agreement (SLA), a comfort band, or a safety margin. The requirement can be scalarized with the costs into a single objective, with a fixed or an adaptively tuned (Lagrangian) weight, or it can be imposed as a constraint. We study this choice in the Smart Buildings Challenge, in which a single policy controls the heating, ventilation and air conditioning (HVAC) of previously unseen buildings and is evaluated by a weighted sum of comfort, energy cost and carbon emissions. With all other components fixed, we compare the two treatments in model-based optimization, represented by model predictive control (MPC) with the requirement as a hard or a soft (l1-penalized) constraint, and in learned policies, represented by proximal policy optimization (PPO) with a fixed or a Lagrangian penalty in the reward or a projection layer on the action. In MPC, the soft constraint reproduces the hard one once its weight exceeds the requirement's shadow price, which the challenge's comfort weight exceeds approximately fourfold; below this weight, comfort is sacrificed, and under a metric that values comfort below its shadow price the soft constraint outperforms the hard one by up to 28%. A weight tuned on the training buildings is 3.9% worse than the hard constraint on 48 unseen buildings, because the shadow price varies across buildings. In PPO, the projected policy satisfies the requirement from the outset and leads early in training; with longer training, the Lagrangian policy overtakes it while the projected policy deteriorates, and the fixed penalty does not learn to satisfy the requirement.

Figures & tables

Explore similar work

Nov 16, 2026

Comfort as a Constraint or as a Cost in Reinforcement Learning and Model Predictive Building Control

A building controller that keeps a zone within comfort bounds at minimum energy can treat the bounds as a soft constraint, by adding the weighted violation to its cost, or as a hard constraint. We analyze the effect of the hard and the soft formulation of the same problem and isolate the effect of the formulation from the effect of the algorithm. To this end, we measure the difference in energy use between the two formulations on the BOPTEST bestest_hydronic_heat_pump case, in model predictive control (MPC) and in reinforcement learning (RL). The soft formulations are a weighted MPC and weighted SAC and DDPG learners, each at twelve weights. The hard formulations are an MPC with an exact penalty and the Lagrangian learners SAC-Lagrangian and primal-dual DDPG. We find that the hard formulations use more energy than the soft formulations at the largest weight, but violate the comfort bounds less. For a large weight, the soft formulation approaches the behavior of the hard formulation. The frontiers of the energy-comfort trade-off of the three weighted controllers lie close to each other, and the weight selects an operating point on this frontier. Under the soft formulation, the three algorithms reach very similar operating points, although at somewhat different weights. For this HVAC problem, the formulation and the weight thus affect the energy use more than the choice of algorithm.
Jun 1, 2026

Quantifying the Energy Floor: Direct Measurement and Replay Buffer Bias in SAC-Based HVAC Control on sbsim

We quantify the energy floor -- the minimum achievable cost given action space constraints -- for Soft Actor-Critic (SAC) HVAC control on the sbsim calibrated building simulator. Through minimum-action experiments, we directly measure this floor at USD 35.51/day, dominated by continuous electrical loads (USD 35.44, 99.8%) with negligible gas consumption. The standard SAC baseline, initialized with schedule-policy replay buffer transitions, converges to USD 37.18/day, 4.7% above the floor. We identify buffer initialization as the dominant source of sub-optimality in this scenario: training from an empty buffer reduces cost to USD 35.57/day, eliminating 96% of the gap. Expanding the supply water temperature range by 10 K yields negligible additional savings (USD 0.03/day), and further expansion triggers physical constraint violations. We additionally uncover a discount factor coupling (gamma_eff = 0.891) shrinking the effective planning horizon from 8.3 h to 46 min -- a benchmark-wide issue warranting audit. Systematic ablation across planning horizon, reward weights, and observation enrichment confirms all pre-filled-buffer configurations cluster within 0.7% (USD 37.18--USD 37.42), demonstrating that equipment minimum power -- not algorithmic design -- imposes the binding constraint.
Oct 2, 2024

The Smart Buildings Control Suite: A Diverse Open Source Benchmark to Evaluate and Scale HVAC Control Policies for Sustainability

Commercial buildings account for 17% of U.S. carbon emissions, with roughly half of that from Heating, Ventilation, and Air Conditioning (HVAC). HVAC devices form a complex thermodynamic system, and while model predictive control and reinforcement learning have been used to optimize control policies, scaling to thousands of buildings remains a significant unsolved challenge. Most current approaches are over-optimized for specific buildings and rely on proprietary data or hard-to-configure simulators. We present the Smart Buildings Control Suite, the first open source interactive HVAC control benchmark with a focus on solutions that generalize across building. It has 3 components: real-world data from 11 buildings over 6 years, a lightweight data-driven simulator, and a modular Physically Informed Neural Network (PINN) building model. The buildings span multiple climates, management systems, and sizes, and both the simulator and PINN easily transfer to new buildings, ensuring solutions using this benchmark are robust to these factors and only reliant on fully scalable building models. This represents a major step towards scaling HVAC optimization from the lab to buildings everywhere. To facilitate use, our benchmark is compatible with the Gym standard, and our data is available at our webpage. Code at https://github.com/google/sbsim