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
Figure 1: Model-based optimization (MPC) and the point at which the treatment of the requirement acts (orange). The model predicts the outcome of each action; F is the set of actions predicted to meet the requirement. (a) Soft constraint: the search covers all actions, and actions outside F are penalized; with a large weight w the optimum coincides with (b), with a small weight it lies outside F . (b) Hard constraint: the search is restricted to F , and the cheapest action lies on its boundary.
T30 (30 scenarios)
V48 (48 unseen buildings)
score
comfort
en.+carb.
score
comfort
en.+carb.
MPC-H
8.50
0.16
8.34
11.06
0.59
10.47
MPC-S, w=105
8.50
0.16
8.34
11.06
0.59
10.47
MPC-S, w=104
8.48
0.16
8.32
11.49
1.10
10.39
MPC-S, w=3000
9.14
1.04
8.10
52.97
44.75
8.21
MPC-S, w=1000
142.2
137.5
4.64
630.9
629.0
1.89
Table 1: MPC-H versus MPC-S (identical model and solver), paired comparison. Score, comfort ( 0.6ct ) and energy plus carbon ( 0.2et+0.2gt ) per step ( 10−3 , lower is better); the last two columns sum to the score.
Figure 2: The T30 runs re-scored with a reduced comfort weight in the metric (energy and carbon retain 0.2 each). Score of MPC-S relative to MPC-H (negative values: the penalty is better). The challenge weight is 0.6 (vertical line); below approximately 0.15, a soft constraint with a suitable w is better. The crossover equals the shadow price estimated from Table 1 (Sec. 4.3 ).
Figure 3: Learned policy (PPO) and the point at which the treatment of the requirement acts (orange). (a) Penalty in the reward: the comfort loss c is weighted against the costs with a fixed weight λ or with a weight adapted during training (Lagrangian). (b) Projection layer: the policy’s action is replaced by the nearest action in F , the set predicted by a model to meet the requirement; the reward is the challenge reward.
Figure 4: PPO with the three treatments (two scalarized, one constrained), evaluated during training on four held-out scenarios (mean action, first 7 days). Left: loss per step; right: comfort loss per step. Lines: mean of two runs per treatment, trained to 1.2⋅106 steps and continued from the checkpoint (dotted line) to 3⋅106 steps; bands: range over the two runs.
5⋅104
1.5⋅105
4⋅105
1.2⋅106
3⋅106
Treatment
loss
comf.
loss
comf.
loss
comf.
loss
comf.
loss
comf.
Fixed penalty
92.3
21.9
68.8
11.3
49.9
5.7
48.7
10.1
47.1
21.2
Lagrangian
93.2
21.3
67.1
8.7
46.6
2.2
37.8
0.6
28.0
1.6
Projection
61.4
0.14
54.0
0.12
43.7
0.10
40.0
0.12
57.2
0.13
Table 2: PPO on four held-out scenarios (first 7 days; loss and comfort loss per step, 10−3 ) after ≈5⋅104 , 1.5⋅105 and 4⋅105 environment steps (mean over three seeds) and after 1.2⋅106 and 3⋅106 steps (mean of two runs; continued from 1.2⋅106 steps).
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.
Joram Liebeskind, Valentin Bhend, Varsha N. Behrunani +1
Centre for Artificial Intelligence, Zurich University of Applied Sciences, Switzerland. · Belimo Automation AG
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.
Bo Li, Chen Zhang
Shanghai Jiao Tong University College of Smart Energy Shanghai, China
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
Judah Goldfeder, Victoria Dean, Zixin Jiang +4
Columbia University · Google Research · AI Institute in Dynamic Systems +2