Building a new generation of grid solvers for data centers with reinforcement learning
An ongoing race is underway to connect AI infrastructure to the grid. However, before a new data center can run, engineers must establish how much demand the grid can safely support, even when a line or generator fails. These studies shape where projects get built and which upgrades they need. Delays in securing power can leave computing infrastructure waiting to operate, making grid connection a critical constraint on the pace of America’s AI buildout.
We are building machine learning models and using reinforcement learning to accelerate those decisions. On a synthetic Texas-scale grid, our model, WARP, reduced average solve time by 71% compared with a cold start, from 47.4 seconds to 13.6 seconds. A cold start means the solver begins without a learned estimate. WARP also outperformed other AI approaches, using 41% less time than CANOS from Google DeepMind and 32% less than IPM-LSTM. Extending the approach with reinforcement learning reduced the time further to 12.1 seconds in a follow-on test.
The opportunity is to radically change how much of the grid engineers can explore before committing billions to infrastructure. Faster calculations could let developers and utilities compare more sites, test larger demand, and identify better upgrade options within the same study budget, supporting more computing capacity without compromising electrical limits.
Solving the grid is a mission-critical activity
A new data center adds demand to a network already serving homes, businesses, and industry. If a transmission line fails, electricity shifts onto other lines; if a generator trips, other generators must supply the missing power. Engineers call the loss of one grid component an N−1 contingency. They test these conditions before approving new demand so one equipment failure does not overload the remaining network. The result can determine whether a project can connect as planned or needs costly upgrades.
The scale and urgency are growing together. As of October 31, 2026, ERCOT was tracking 1,847 generation and storage connection requests totaling about 461GW, more than five times its record demand of about 91GW. Meanwhile, the U.S. Department of Energy warned in July 2025 that outage risk could rise 100-fold by 2030 under its projected demand-growth and plant-retirement assumptions if it does not add sufficient dependable capacity. Engineers must assess new connections and the upgrades they need without weakening reliability. Delays in that work can hold back the power infrastructure needed for new data centers. And an incorrect study can have a system-wide effect.
In October 2025, PJM’s independent market monitor urged federal regulators not to approve an agreement for Amazon’s planned data center in Falls Township, Pennsylvania, until it was shown that the grid could serve the new demand reliably and without raising costs for other customers. FERC approved the agreement in November, finding those concerns outside the scope of that proceeding. The dispute illustrates why developers must show how a proposed site will affect the wider grid.
Before a line outage
After one line is removed (N−1)
Using reinforcement learning to make grid calculations faster
For a proposed 200MW data center, engineers must find a generation plan that serves its demand at low cost while keeping lines and voltages within safe limits. This is optimal power flow, or OPF. They use numerical solvers, programs that repeatedly adjust electrical values until the equations and operating limits are satisfied. Expanding to 300MW or testing a nearby line failure requires a new calculation. Repeating that work across many sites, demand levels, and failures can limit how many connection options a team can assess before a decision is due.
A conventional solver can begin from a generic estimate and spend many iterations correcting it. Our model, WARP, instead learns from solved grid cases to predict starting voltages, generator outputs, and operating-limit information. The numerical solver starts from these learned values and completes the electrical calculation. We then use reinforcement learning through our Newton’s Lantern method to improve the starting values based on how much work they leave for the solver. This helps engineers test more contingencies and connection options within the same study budget, with fewer convergence failures to investigate.
WARP cuts solver time by 41% on a Texas-scale grid
We tested how much work this approach saves on a synthetic Texas-scale grid with 6,717 electrical connection points and 9,410 lines, covering changing hourly demand and single-line outages. We compared WARP with CANOS from Google DeepMind and IPM-LSTM, two other learning-based approaches included to test whether WARP speeds up the full optimization workflow. We also measured a cold start, where the solver receives no learned starting estimate.
In this comparison, WARP used about 71% less solve time than cold start, 41% less than CANOS, and 32% less than IPM-LSTM. Average solver iterations were 40.3 for WARP, 52.7 for CANOS, 41.8 for IPM-LSTM, and 158.3 for cold start. WARP had the lowest reported solve time and iteration count among these four approaches. To illustrate the scale, the 9.5-second difference from CANOS would save about 2.6 hours of accumulated solver time across 1,000 comparable runs at these averages. Engineers can use that computational headroom to examine more outages and demand levels.
In a follow-on test on difficult cases, applying our reinforcement-learning method reduced WARP’s reported solve time from 13.6 to 12.1 seconds and iterations from 40.3 to 35.8.
Time savings are one part of the result. Engineers also need a converged solution to assess a scenario: a run that does not converge leaves the electrical question unresolved. We therefore tested whether reinforcement learning could help in difficult conditions close to voltage collapse, where maintaining acceptable voltage becomes challenging. In this separate power-flow experiment, our trained models helped the solver converge on all 90 test cases across three grid sizes.
On the 500-point grid, the comparison model left three of 30 cases unresolved; our method enabled the solver to converge on all three cases. Those are three additional operating conditions an engineer can assess, rather than three convergence failures to troubleshoot. With more usable results, engineers can identify which connection designs stay within electrical limits, utilities can target upgrades at the constraints that matter, and grid operators can assess alternative generation schedules or demand reductions during an outage. The benefit is a stronger basis for decisions about how to serve load reliably.
Important research contributions
- Learning from the solver’s feedback speeds up grid calculations: Newton’s Lantern uses reinforcement learning to improve the starting estimates given to a numerical solver. It rewards estimates that help the solver finish in fewer steps. In the Texas-scale follow-on test, applying this feedback to WARP reduced average solve time from 13.6 to 12.1 seconds.
- WARP learns both electrical conditions and grid constraints: WARP predicts starting voltages and generator outputs, along with information about which operating limits are likely to restrict the solution. This gives the solver a more complete starting point for finding a generation plan that serves demand within electrical limits. Newton’s Lantern then improves this starting estimate using the solver’s feedback.
- Reinforcement learning helps difficult calculations converge: A fast prediction is useful only if the solver can turn it into a completed calculation. We measure solve time, the number of solver steps, and failures to converge, including tests with changed grid connections and difficult voltage conditions. In the separate power-flow tests, Newton’s Lantern helped the solver converge on all 90 cases across three grid sizes.
Using reinforcement learning to assess grid curtailment risk
Grid curtailment is a major business risk for data-center developers and operators: it can threaten service commitments and leave expensive computing capacity unable to run. The risk continues after a site opens. Operators need to understand how often grid supply could be restricted, for how long, and by how much, especially when customer workloads cannot simply be paused.
PJM’s October 2026 draft tariff proposes non-firm service for eligible large loads, including interim service while transmission upgrades are completed. Customers would need to reduce grid draw when instructed. For sites using these proposed services, managing curtailment exposure would be an ongoing operating requirement.
Our models could accelerate the grid calculations within these risk studies. Engineers could test changing demand, generator outages, and line failures to identify when a planned or operating 300MW site might lose access to part of its grid supply. Combined with hourly scenarios, outage probabilities, and the site’s service terms, these calculations could help quantify exposure and compare backup generation, storage, and transmission upgrades.
The goal is to make curtailment exposure something teams can plan around throughout a data center’s life. Developers could compare sites and connection options before investing. Operating teams could reassess risk as the surrounding grid changes and test whether backup resources can sustain customer services through a curtailment event. Faster studies could support better investment decisions and stronger operating plans.
References
- - Newton’s Lantern: Shourya Bose, Helgi Hilmarsson, and Dhruv Suri. Reinforcement learning for power-flow warm starts; Tables 1–3.
- - WARP: Dhruv Suri, Helgi Hilmarsson, and Shourya Bose. Primal-dual warm starts for optimal power flow; Tables 3 and 6.
- - IPM-LSTM: A Learning-Based Interior Point Method for Solving Nonlinear Programs: A learned method for accelerating interior-point optimization. NeurIPS 2024.
- - AWS Falls Township reliability challenge, October 2025: PJM’s market monitor called for evidence that the new demand could be served reliably and without increasing other customers’ costs.
- - FERC approval of the PECO–Amazon agreement, November 2025: FERC approved the agreement, finding the market monitor’s capacity, cost, and reliability concerns outside the proceeding’s scope.
- - DOE’s 2025 grid reliability report: A conditional assessment of outage risk under projected demand, generation additions, and retirements.
- - CANOS: A Fast and Scalable Neural AC-OPF Solver Robust To N-1 Perturbations: Google DeepMind’s research on AI-based grid optimization. Its published prediction timings are different from our solver-workflow comparison.
- - ERCOT Monthly Operational Overview, October 2026: Published November 17, 2026. Page 6 reports 1,847 active generation interconnection requests totaling 461,414MW, including battery storage, as of October 31, 2026.
- - ERCOT 2026 peak demand records: The July 22, 2026 record was 91,155MW, or about 91.2GW; used here to illustrate the scale of proposed connection capacity.
- - PJM’s proposed transmission services for large loads, October 2026: Draft Part XI describes interim non-firm service, contract demand services, and requirements to respond to curtailment instructions.