The Air Conditioners Are Coming for the Grid — In a Good Way

Here's the thing about your air conditioner that nobody tells you: it is, right now, carrying part of the electrical grid on its shoulders. Literally. The compressor cycling on and off as you fiddle with the thermostat is part of a vast, silent choreography that keeps the lights on when a cloud passes over a solar farm and the sun suddenly stops shining. And for years, grid operators have treated millions of these units as a single, stubborn, lumbering blob — hard to control, hard to schedule, essentially a burden. A group of researchers from Huazhong University of Science and Technology thinks that's backwards.
In a paper published in IEEE Transactions on Smart Grid, Jingguan Liu and colleagues argue that the humble HVAC system — the thing that heats and cools most buildings — might be one of the most underused resources in the clean-energy transition. Their claim is precise and a little unsettling: thousands of air conditioners, coordinated properly, can respond to grid changes within minutes, almost like a giant virtual battery that's been sitting in our walls and windows this whole time. The problem was never the flexibility. It was our ability to see it.
The Science
Here's the setup. Renewables — wind, solar — are glorious but fickle. A wind farm's output can swing wildly within a single hour as gusts strengthen and weaken. Solar power collapses the moment a cloud rolls in. Grid operators have historically handled these fast fluctuations the same way they've handled everything else: by spinning up extra gas turbines or coal plants on standby, ready to inject or absorb power at a moment's notice. That's the "reserve" — the emergency cushion of power that keeps the grid stable.
But those reserves are expensive, and they're part of the fossil-fuel system we're trying to leave behind. The clean alternative is demand-side flexibility: instead of building more plants to match supply, we adjust demand to match supply. And HVAC loads are the perfect candidates. They're everywhere, they consume a huge share of electricity, and they have thermal inertia — a room doesn't instantly heat up when you turn the AC off for fifteen minutes. There's a bank of "stored" coolness in the walls, the furniture, the structure itself. That stored energy is real, schedulable flexibility.
The catch, and it's a big one, is scale and chaos. A grid might have hundreds of thousands of individual HVAC units, each with its own thermostat setting, its own thermal mass, its own compressor characteristics, its own room that's currently occupied by people who will absolutely notice if you make them sweat. Scheduling all of them individually is computationally brutal. And outdoor temperature is uncertain — the energy an HVAC system can shift depends on how hard it's working that hour, which depends on weather nobody can perfectly predict.
Liu's team's answer is a continuous-time aggregation model. Instead of treating each HVAC unit separately, they found a way to collapse the entire fleet into one clean, computable mathematical object — a "virtual battery" with known charging and discharging limits. The aggregation isn't a rough average of the units; it's an exact characterization of the feasible region of all the units together, meaning the full space of power outputs the fleet can deliver at any moment while still keeping every room at a comfortable temperature.
The trouble with aggregation is that HVAC units aren't alike, and the technical language for this is heterogeneity. If every unit were identical, aggregating them would be trivial — multiply one unit's behavior by a million. But in reality each unit has a different feasible operating region (high-dimensional, geometrically complicated). The researchers designed a new affine transformation — a mathematical reshuffling — to map all these different shapes into a common space, so they could be summed up without losing accuracy. It's a bit like converting all the different currencies of a trip into a single ledger: the underlying accounts are different, but the aggregation becomes manageable.
And the temperature uncertainty? They handled it with distributionally robust chance constraints. Jargon, but the idea is elegant: rather than guessing the exact shape of tomorrow's temperature distribution and betting everything on that guess, they build the aggregation to work for a whole family of plausible distributions, guaranteeing that the temperature stays in range with high probability no matter which one actually shows up. It's uncertainty-proofing, not just uncertainty-handling.
Then there's the tractability problem. An exact continuous-time model is beautiful on paper and useless on a computer if it can't be solved fast enough to be used in real dispatch. The team assembled a "cascade of tailored reformulation techniques" — a Bernstein polynomial spline to represent the continuous power trajectories, a polytope projection to collapse the high-dimensional feasible region, and a linearization transformation to keep the whole thing solvable. The result is a model that can be optimized in the minutes a grid operator actually has.
What They Found
The case studies in the paper make the case concrete. The first thing the authors demonstrate is aggregation accuracy. They compare their aggregated model against both the true, exact multi-unit behavior and the simpler, cruder approximation methods that came before. The finding: their aggregated feasible region matches the true feasible region dramatically better than the standard alternatives, especially under high heterogeneity. When units are similar, everyone does OK; when the fleet is genuinely diverse — different units, different thermal masses, different constraints — the affine-transformation approach pulls ahead sharply, capturing flexibility that the naive models simply discard.
The second key result is about intra-hour flexibility utilization. This is where the story gets exciting. The whole point of a continuous-time model, as opposed to the discrete-time models that dominate the field, is that it can see what happens within the hour, not just at the hour boundaries. Renewables fluctuate within the hour. HVAC loads can respond within the hour. But the standard scheduling framework only makes a decision once per dispatch interval, essentially blind to the sub-hour dynamics. By moving to continuous time, Liu's team unlocks the intra-hour flexibility that conventional aggregation throws away. Their case study shows the proposed framework schedules reserve provision that follows the renewable uncertainty far more tightly, using the HVAC fleet as a fast-responding reserve that shaves peaks and fills troughs.
The third pillar is uncertainty handling. They test the system against a range of outdoor temperature scenarios, both within the family their robust constraints were built for and — crucially — outside it (the "out-of-sample" cases, where reality is nastier than the model anticipated). The distributionally robust chance constraints keep the temperature violations at or below the allowed tolerance across all of these, including the out-of-sample ones. The fleet never lets a single room drift uncomfortably, no matter how wrong the weather forecast was.
And then there's scalability. One of the quietly impressive numbers in the paper is that the computational cost stays tractable as the fleet grows — the reformulation cascade is designed so that the hard geometry (the polytope projection) is done once, up front, and the per-dispatch cost stays modest even for massive fleets. The authors report that the whole thing remains practical at the scale of tens of thousands of units.
Why This Changes Things
Let's put this in the context of what the grid actually needs. The International Energy Agency has been counting up the schedule for the energy transition, and one of the recurring worries is that we're not building enough flexibility — the ability to balance supply and demand second by second — to go along with all the wind and solar we're adding. Flexible generation is expensive and carbon-emitting. Batteries are coming, but they're not here in enough volume. Demand-side flexibility is the low-hanging fruit, and HVAC is the biggest, ripest piece of it.
The numbers behind this are worth sitting with. In many grids, HVAC accounts for a startling share of peak electricity demand — in hot climates, air conditioning can claim more than half of summer peak load. That means the HVAC fleet, viewed as a resource, has a huge buffer of thermal mass that can be shifted around within an hour without anyone noticing. The paper's framework is essentially a way to cash that check: to make that hidden flexibility visible, schedulable, and bankable as reserve.
There's a deeper conceptual point here that deserves emphasis. The default mental model of the grid is that "generation follows demand." Power plants ramp up and down to match how much energy people want. But a grid with lots of renewables and lots of demand-side flexibility works the other way around: demand follows generation. The AC in your living room isn't just a consumer; it's a coordination partner, willing to shift its workload by a few minutes to keep the system in balance. This paper is part of a larger intellectual shift in power systems research — the move from "smart meters that measure you" to "smart loads that help you." The HVAC fleet is being reimagined as a virtual power plant whose fuel is the stored coolth of millions of buildings.
The continuous-time framing is also a genuine advance, not just a modeling nicety. The power system runs in continuous time — renewables fluctuate continuously, weather changes continuously — yet dispatch models historically sample the world at fixed intervals (typically one hour, sometimes fifteen minutes). The mismatch means that flexibility within the interval is invisible and unusable. By building the aggregation and the dispatch in continuous time, with the Bernstein splines representing smooth power trajectories, Liu and colleagues close a gap between the math and the physics. The intra-hour flexibility they unlock is exactly the flexibility that matters for following fast renewable variation.
The robustness result matters for a different reason: trust. For grid operators to actually use demand-side flexibility as reserve, they need to believe it won't vaporize exactly when they need it most. The distributionally robust chance constraint is the technical heart of that trust — it's a guarantee, not a hope, that the temperatures stay in range even when the weather does something the forecast didn't anticipate. In a field that's historically been skeptical of demand response because "what if it doesn't show up?", this is the kind of reliability guarantee that changes minds.
What's Next
The natural next questions are about reality, not theory. The paper is built on case studies and modeled scenarios; the hard test is deploying the framework in an actual utility control room, with real buildings, real weather, real occupants who drop the thermostat because they're feeling warm. The researchers acknowledge that the model's guarantees depend on the chance constraints being set correctly, and that the modeling of HVAC behavior — the thermal dynamics, the occupancy effects — is an idealization. Real buildings are messier than the thermal models in textbooks.
There's also the question of communication and control infrastructure. To schedule tens of thousands of HVAC units as reserve, a grid operator needs the ability to send setpoints down to the devices and get telemetry back. That's a two-way street that many grids are still building. The aggregation model produces a wonderfully clean, single, computable object for the dispatch layer — but the real world still has to round-trip the commands through a forest of individual thermostats.
And there's the human layer, which the math can't fully capture. People are not passive thermal masses. They set the AC to what feels good, they open windows, they cook dinner and generate heat, they have preferences that are not always rational. A robust approach that keeps temperatures in range is a necessary condition for this to work — but the day-to-day reality is that occupants will sometimes override the system, and the aggregation needs to absorb those overrides gracefully.
Still, the trajectory is unmistakable. The energy transition is not just a story about building more wind turbines and solar panels; it's a story about learning to squeeze every drop of value out of the infrastructure we already have. The HVAC fleet — that massive, distributed, mostly-idle resource sitting in every building on the planet — is one of the largest and most neglected batteries we own. This paper is a rigorous, scalable, uncertainty-proofed plan for switching that battery on. The next step is turning the plan into practice, one building — and one very reasonable thermostat — at a time.