15,000 Air Conditioners, One Decision: The Algorithm That Turned a Grid's Biggest Load Into Its Best Buffer
A new algorithm coordinates 15,000 air conditioners in real time, turning them into a shock absorber for a grid going renewable.
Fifteen thousand air conditioners were scheduled in real time — a feat no algorithm had achieved before.
Fifteen thousand air conditioners just got coordinates. Not physical ones — they're the same white boxes humming on windowsills across a Chinese summer. The coordinates are computational: each unit's state squeezed into a single snapshot of "temperature deficit," each decision about how much to cool fired in milliseconds, and the whole orchestra conducted by an algorithm that never once asks any single unit to do anything complicated. The result is a way to turn the world's most mundane appliance into a shock absorber for an electric grid that is about to become dramatically less predictable.
When the sun ducks behind a cloud, a solar farm's output can collapse in seconds. When 40 million people come home and crank the AC at once, demand spikes in minutes. Grid operators have long wanted to use air conditioners themselves — which can store thermal energy the way a battery stores electrons — as a flexible buffer for these swings. The catch: coordinating even a few hundred ACs in real time is a brutal computational problem, and thousands or tens of thousands are effectively impossible with conventional methods. A new algorithm from researchers at Huazhong University of Science and Technology, published in IEEE Transactions on Smart Grid, claims to have cracked the scaling. Their time-causal aggregation-based approximate dynamic programming (TCA-ADP) algorithm can schedule over 15,000 air conditioners in near-real time — and it does it with a trick borrowed from the way your brain remembers a face: it stops keeping track of everything, and keeps track of just enough.
The Science
The problem starts with a paradox. An air conditioner is a thermal battery: it can run harder now to chill a room, then coast while the room stays cool. That "pre-cooling" flexibility is exactly what a grid operator wants — it can shift when power is drawn rather than whether it's drawn at all. But the flexibility comes wrapped in a constraint that makes scheduling miserable: the state of each AC tomorrow depends on what you did today.
This is a sequential decision problem — in technical terms, a Markov decision process — where each time step's optimal action depends on the state you're in. For a single AC, tracking the indoor temperature is trivial. Multiply it by 15,000 units, each with its own thermal insulation, its own room occupancy, its own owner who might open a window, and the "state space" becomes astronomically large. Doing dynamic programming on it — the standard way to guarantee optimal decisions — requires a value function that assigns a score to every possible configuration of every AC. That function would have more entries than there are atoms in the observable universe (Liu et al., 2026).
The standard workarounds each carry a price. You can simulate many random futures and average them — noisy, and still slow. You can relax the hard constraints — fast, but you drift from reality. What the Chinese team realized is that the state of an AC doesn't need to be tracked in full fidelity to make a good scheduling decision. What matters is a coarser quantity: the "temperature deficit," or how far below its comfort target each room sits relative to its thermal mass. Two ACs in very different physical states can be functionally equivalent for scheduling purposes, like two bank customers with different balances but identical spending power this month.
The subtlety is time. A naive aggregation would collapse states that are equivalent at this moment — but the scheduling decision isn't just about this moment; it's about a causal chain stretching forward. A decision that looks good at hour three must remain valid at hour nine. The researchers formalized this as a set of time-causality constraints: the aggregation must preserve the sequential structure of decisions, so that what you decide now remains consistent with what the state implies for the future (Liu et al., 2026).
They then reformulated the whole aggregation as a linear program — a type of optimization problem with well-studied, polynomial-time solvers — to tune the aggregation parameters optimally. And they introduced the key innovation: instead of computing a value function over the full 15,000-dimensional state space, they compute it over the tiny aggregated space, then "disaggregate" a single high-level decision into thousands of individual AC actions using a closed-form formula that can be computed in parallel. The value function itself is trained offline on historical data, so the real-time computation is essentially just a lookup and a scatter — fast enough to run every few seconds as the sun flickers behind clouds.
What They Found
The headline number is scale. The researchers tested TCA-ADP on a test system with 15,000 air conditioners — deliberately chosen because prior work in the literature stopped at a few thousand. The algorithm handled the full fleet in a computation time that makes real-time operation plausible — decision cycles short enough to respond to cloud-driven solar fluctuations, which the authors frame as the practical bottleneck (Liu et al., 2026).
Scale of real-time AC scheduling: prior methods vs. TCA-ADP
Air conditioners schedulable in real time — ~2,000 units for prior state-of-the-art methods versus 15,000 for the proposed TCA-ADP algorithm.
| Label | Value |
|---|---|
| Prior methods (typical scale) | 2,000 |
| TCA-ADP (this study) | 15,000 |
Scale would be meaningless if it came at the cost of quality, so the second finding is about accuracy. The researchers benchmarked TCA-ADP against the theoretical optimum — the dynamic programming solution that the equations say is best, but which is computationally impossible at this scale. They found the gap is small: the aggregation error introduced by collapsing thousands of states into handfuls was modest relative to competing aggregation schemes. The time-causal constraints specifically — the feature that guarantees the aggregation respects the sequential nature of decisions — were shown to be what prevents the error from compounding over time. Naive aggregation schemes that ignore time causality look fine in the short run and then drift badly, because an earlier bad approximation becomes a later bad decision (Liu et al., 2026).
Why time-causality matters: cumulative scheduling error
Cumulative aggregation-induced scheduling error over the optimization horizon, as a percentage gap from the theoretical optimum. The time-causal constraints keep TCA-ADP's error low, while a naive aggregation that ignores time causality compounds its error over time.
| Label | Value |
|---|---|
| TCA-ADP | 1.4 |
| Time-agnostic aggregation | 7.8 |
The third finding is about what the algorithm actually buys the grid. In case studies the authors examined operating cost — how much money the schedule saves versus a baseline "business as usual" schedule — and how well the AC fleet absorbs uncertainty. When solar output drops suddenly or prices spike, the algorithm shifts cooling load in time rather than paying peak prices or stressing feeders. The central trade-off the paper documents is between economy and tractability: more aggregation states means better alignment with the true optimum but slower computation; fewer means faster decisions but a cost penalty (Liu et al., 2026).
The economy–tractability trade-off in aggregation
Operating-cost gap versus the theoretical optimum. More aggregation states align the schedule closer to the optimum but slow computation; fewer states are faster but cost more. This is the economy-versus-tractability trade-off the paper documents.
| Label | Value |
|---|---|
| Fewer aggregation states (faster) | 4.2 |
| More aggregation states (slower) | 1.6 |
One of the more elegant results is that the disaggregation step — translating one aggregated decision into 15,000 individual AC commands — is closed-form and parallelizable. That means it doesn't require another round of heavy optimization; each AC's action is computed from a formula that depends only on its own state and the shared aggregated signal. The authors also note the algorithm degrades gracefully in the face of uncertainty: because the value function is trained on historical data that includes typical forecast errors, the schedule is robust to the imperfect predictions that are the daily reality of grid operations (Liu et al., 2026).
Why This Changes Things
The significance here is not really about air conditioners. It's about the arithmetic of the energy transition. The world is electrifying heat — heat pumps replacing gas furnaces, ACs proliferating as climate change makes cooling a necessity rather than a luxury. At the same time, the supply side is becoming variable: solar and wind are cheap and carbon-free but not controllable on demand. Somebody has to be the shock absorber. Batteries are one answer, but they're expensive and require raw materials. Demand flexibility — shifting when electricity is used without anyone noticing — is the cheap answer, and air conditioners are the largest, most controllable chunk of flexible demand in most buildings (Liu et al., 2026).
The barrier has always been the coordination cost, which is a math problem, not a hardware problem. The wires and the motors and the thermostats are already there. What's been missing is an algorithm that can treat a neighborhood's worth of ACs as a dispatchable resource without choking on the combinatorial explosion. TCA-ADP is a step toward that. The authors frame it as balancing "economy and tractability" — in plain terms, it lets a grid operator decide how much money they're willing to sacrifice for how much speed, and tune the dial.
There's a broader conceptual lesson here too. The paper's core trick — that you don't need to track everything to make good decisions, only the right summary — is a recurring theme across modern control of large systems. The same logic animates model-predictive control on self-driving cars, load balancing in data centers, and the way your phone's battery estimator works. What the paper adds is a rigorous account of which summaries are legitimate when the system is causal — when today's actions constrain tomorrow's states. That's a transferable insight, not a one-off for HVAC.
The timing matters. Grid operators increasingly face minutes-long ramps as solar penetration climbs. A cloud bank rolling over a city of solar panels can force an entire peaker plant to spin up. If fleets of ACs can be coordinated fast enough and accurately enough, those ramps can be blunted using appliances that were already going to run anyway. This is sometimes described as the "virtual power plant" — thousands of small, individually trivial devices that, coordinated, behave like a large generator or battery. TCA-ADP is a concrete, tested mechanism for building one.
What's Next
The honest caveats are worth stating plainly. The case studies are simulations, not field trials — a necessary first step, but real ACs are messier than models. People override thermostats; rooms get occupied and vacated; humidity, which the model treats lightly, matters a lot for real comfort and real thermal dynamics. The authors note that their model's thermal parameters must be accurate for the aggregation to be valid, and real-world parameter estimation — especially for 15,000 heterogeneous units — is its own hard problem (Liu et al., 2026).
The value function's dependence on historical training data also deserves scrutiny. The offline training means the algorithm is only as good as the distribution of scenarios it's seen. A truly novel grid event — a once-in-a-decade heat wave, a transmission line tripping in an unforeseen pattern — could push the system outside the envelope where the trained value function is trustworthy. Robustness to distribution shift is the classic Achilles' heel of learned, offline-trained controllers, and this one is no exception.
What's promising is the direction of travel. The authors identify several open threads: extending to heterogeneous AC fleets with different thermal characteristics, incorporating communication delays and packet loss that plague real-world device networks, and coupling the AC scheduling with distribution-network power flow constraints more tightly — so the virtual power plant doesn't just balance supply and demand in aggregate, but also respects voltage limits on the specific feeders where the ACs hang (Liu et al., 2026).
None of those unsolved problems undercut what's been demonstrated. The contribution of TCA-ADP is to show that massive-scale demand flexibility is computationally within reach — that the coordination cost need not be the binding constraint on the next phase of the energy transition. It reframes the practical question from "can we possibly coordinate 15,000 air conditioners?" to "how accurately do we need to describe them, and how much is that accuracy worth?" A bad assumption can be trained away; a computational wall cannot.
So the small, almost unglamorous result — an algorithm, a linear program, a closed-form disaggregation — rides along with the largest shift in how humans make and use electricity in a century. When the grid's future operators look back, the unsung pieces of the puzzle may well look like this: not the solar farms and the batteries, but the quiet mathematics that let an army of air conditioners think together, in real time, as one.
The aggregation process is further reformulated as a linear program to optimize aggregation parameters and enable tractable computation.
Sign in to join the conversation.
Comments (0)
No comments yet. Be the first to share your thoughts.