NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Tai-You Chen, Mihael Mohorcic, Blaz Bertalanic, Carolina FortunaarXiv 2026

TL;DR

When building an automated controller to minimize costs (like energy) while maintaining a requirement (like indoor comfort), should you lump everything into a single weighted penalty or enforce the requirement as a strict boundary? Using commercial building HVAC control as a testbed, this paper shows the answer comes down to a hidden economic number—the requirement's shadow price—and reveals surprising trade-offs between hard rules and adaptive penalties in both classical optimization and deep reinforcement learning.

What Problem Does This Paper Address?

Imagine you are designing an automated system—say, cooling a data center, routing network traffic, or aligning a language model. Almost universally, you face two competing goals: costs to minimize (electricity, latency) and requirements to meet (temperature limits, harmlessness).

When evaluating these systems, benchmarks usually scalarize the goals into a single score—a weighted sum like 0.2 × Energy + 0.2 × Carbon + 0.6 × Discomfort. Because the final exam is a weighted sum, it is tempting to train or run your controller using that exact same weighted penalty. Alternatively, you could treat the requirement as a hard constraint, strictly forbidding the system from leaving the comfort zone.

Optimization theory says these two approaches are mathematically identical if you set the penalty weight high enough—specifically, above the constraint's shadow price (the marginal cost of meeting the requirement). However, in real-world machine learning, outcomes are uncertain, conditions change across environments, and reinforcement learning (RL) agents struggle with exploration and credit assignment. The authors ask: when is it actually worth constraining a requirement that your evaluation metric simply scalarizes?

Methods

Rather than inventing a new algorithm, the authors construct a clean, apples-to-apples experimental testbed where only the mathematical treatment of the comfort requirement changes, keeping models, solvers, and neural network architectures identical. They test two standard paradigms:

  1. Model-Based Optimization (MPC): Using a simple physics-based thermal model identified online, Model Predictive Control (MPC) plans one step ahead. The authors compare MPC-S (soft constraint, penalizing temperature violations with a fixed weight) against MPC-H (hard constraint, restricting the search strictly to actions predicted to keep temperatures in bounds, falling back to minimizing violations if impossible).
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.
  1. Learned Policies (PPO): Using Proximal Policy Optimization (a workhorse RL algorithm) with a shared actor-critic network across building zones, they test three setups:
  2. Fixed Penalty: Optimizing the benchmark's exact weighted reward directly.
  3. Lagrangian (Adaptive Penalty): Dynamically cranking up the discomfort penalty during training whenever average violations exceed a target threshold.
  4. Projection Layer: Letting the RL agent output any action, then mathematically projecting it onto the nearest "safe" action using the physics model before executing it.

Datasets

The experiments use the NeurIPS 2026 Smart Buildings Challenge simulator, where a controller manages supply air, dampers, and reheat coils every 5 minutes across multi-zone commercial buildings.

  • T30: The official 30 training scenarios (6 buildings × 5 climates, 30 days each).
  • V48: A newly generated evaluation set of 48 unseen buildings across different weather presets (including a climate unseen in T30) created via the challenge's scenario generator to test zero-shot transfer.
  • Hidden Test Set: Supplementary unpaired evaluations on the competition's public Kaggle leaderboard.

Key Insights and Ideas

  • The Shadow Price is the North Star: In this benchmark, meeting the comfort requirement costs about 0.15 metric units per unit of comfort (the shadow price), while the benchmark values comfort at 0.6—roughly 4x higher. Whenever a metric values a requirement above its shadow price, a hard constraint is ideal: it hits optimal performance without needing any weight tuning.
  • Tuned Penalties Fail to Transfer: A soft penalty weight tuned to perfection on training buildings breaks down on unseen buildings. Because different buildings and climates have different shadow prices (e.g., cooling Phoenix vs. Atlanta), a weight that works in one place sacrifices comfort in another. Hard constraints transfer effortlessly.
  • When Soft Penalties Win: If your evaluation metric actually cares less about the requirement than the cost of meeting it (weight < shadow price), forcing strict compliance wastes energy. Here, soft constraints win—provided you match the penalty weight to the metric.
  • RL's Tortoise and Hare Dynamics: In PPO, projecting actions onto a safe set gives an enormous early lead because the agent never wastes time learning what "comfortable" means. However, with longer training, the projected policy mysteriously degrades in energy efficiency, while the slower Lagrangian agent steadily amplifies its learning signal and overtakes it. Meanwhile, a fixed penalty fails to learn the requirement at all, likely because sharing one building-wide reward across many zones dilutes each room's cry for help.

Key Results

  • MPC Transfer Gap: On T30, soft-constrained MPC ($w=10^4$) matches hard-constrained MPC within 0.2%. Yet on the 48 unseen buildings (V48), that same tuned weight performs 3.9% worse overall (and +11.6% worse in Phoenix) as shadow prices shift.
  • Below the Shadow Price: When re-scoring runs with the metric's comfort weight dropped from 0.6 down to 0.006 (well below the ~0.15 shadow price), soft-constrained MPC outperforms hard-constrained MPC by up to 28%.
  • PPO Training Trajectories: Early on ($5 \times 10^4$ steps), the projection layer achieves ~150x lower comfort loss than penalty methods. By $3 \times 10^6$ steps, however, the Lagrangian policy achieves the best overall loss (0.0280 per step), while the projected policy deteriorates from 0.0400 to 0.0572, and the fixed-penalty policy stagnates at 0.0471 with high discomfort.

Limitations and Future Work

The authors note several boundaries to their study:

  • Simplified Planning: The MPC uses a one-step horizon (relying on fixed rules for night set-backs and morning warm-ups), and all constraints rely on an approximate online thermal model rather than true future temperatures.
  • Projection Bottlenecks: Enforcing requirements via projection only works if you have a model that cleanly maps actions to outcomes in a tractable (e.g., convex) shape; long-term or stochastic requirements make projection computationally expensive or approximate.
  • Open RL Mysteries: Experiments were conducted in a single simulator with limited random seeds (2–3 per RL run) and an optimizer restart mid-way through long runs. Notably, why the projected PPO learner's energy efficiency degrades late in training remains an open question—the authors suspect a mismatch between the agent's raw action (which gets credit in the policy gradient) and the projected action actually sent to the building.

Summary updated

BibTeX
@misc{chen2026should,
  author = {Tai-You Chen and Mihael Mohorcic and Blaz Bertalanic and Carolina Fortuna},
  title = {{Should Service Requirements Be Scalarized or Constrained When Minimizing Costs? A Case Study on HVAC Control}},
  year = {2026},
  eprint = {2611.33946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33946},
}
Figure