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

DevFeed: [Should Service Requirements Be Scalarized or Constrained When Minimizing Costs? A Case Study on HVAC Control](<https://devfeed.tech/articles/should-service-requirements-be-scalarized-or-constrained-when-minimizing-costs-a-case-study-on-hvac-control-156315.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.33946>)

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

Published: 2026-11-26T05:00:00Z

Content type: comparison

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [constraint](<https://devfeed.tech/tags/constraint.md>), [control](<https://devfeed.tech/tags/control.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [emissions](<https://devfeed.tech/tags/emissions.md>), [energy](<https://devfeed.tech/tags/energy.md>), [model](<https://devfeed.tech/tags/model.md>), [mpc](<https://devfeed.tech/tags/mpc.md>), [ppo](<https://devfeed.tech/tags/ppo.md>), [projection](<https://devfeed.tech/tags/projection.md>), [qos](<https://devfeed.tech/tags/qos.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [safety](<https://devfeed.tech/tags/safety.md>), [service](<https://devfeed.tech/tags/service.md>), [service-level-agreement](<https://devfeed.tech/tags/service-level-agreement.md>), [smart-buildings](<https://devfeed.tech/tags/smart-buildings.md>)

## AI overview

In the Smart Buildings Challenge, treating comfort as a constraint or penalty produced different results across model predictive control (MPC) and proximal policy optimization (PPO). For MPC, an l1 soft constraint matches the hard constraint when its weight exceeds comfort's shadow price; below that, comfort is sacrificed. Under a metric that values comfort below its shadow price, the soft constraint performs up to 28% better. A weight tuned on training buildings performs 3.9% worse than the hard constraint on 48 unseen buildings, reflecting variation in shadow prices. For PPO, action projection satisfies the requirement from the outset and leads early in training, but the Lagrangian penalty overtakes it with longer training as the projected policy deteriorates. The fixed penalty does not learn to satisfy the requirement.

## Source excerpt

arXiv:2611.33946v1 Announce Type: new 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.