Sandia Labs News Releases

Creating the self-healing grid of the future

Sandia leads development of algorithms for resilient microgrids

ALBUQUERQUE, N.M. — Self-healing electrical grids: It may sound like a concept from science fiction, with tiny robots or some sentient tech crawling around fixing power lines, but in a reality not far from fiction a team of researchers is bringing this idea to life.

Michael Ropp in Sandia’s Distributed Energy Technologies Laboratory with binary code displayed behind him.

Sandia National Laboratories electrical engineer Michael Ropp and his team have created a library of codes to improve the resilience, reliability and self-healing nature of the electric grid. (Photo by Craig Fritz) Click on the thumbnail for a high-resolution image.

What’s not hard to imagine is the potential value of a self-healing grid, one able to adapt and bounce back to life, ensuring uninterrupted power even when assailed by a hurricane or a group of bad guys. Together a team from Sandia National Laboratories and New Mexico State University is making this vision possible — not with tiny robots, but rather a cutting-edge library of algorithms. By coding these algorithms into grid relays, the system can quickly restore power to as many hospitals, grocery stores and homes as possible before grid operators can begin repairs or provide instructions.

“The ultimate goal is to enable systems to self-heal and form these ad hoc configurations when things go really bad,” said Michael Ropp, Sandia electrical engineer and the project lead. “After the system is damaged or compromised, the system can automatically figure out how to get to a new steady-state that provides power to as many customers as it possibly can; that’s what we mean by ‘self-healing.’ The key is that we’re doing it entirely with local measurements, so there is no need for expensive fiber optics or human controllers.”

The electrical grid of the future, as envisioned by Ropp and many others, will have more renewable energy supplies such as rooftop solar panels and wind turbines, along with local energy storage systems such as banks of batteries. Many of these systems will have the ability to form microgrids — small “islands” of power around hospitals, water treatment plants, and other critical infrastructure even if the main grid is down. This Sandia project enables those microgrids to automatically heal themselves when damaged and connect with one another to share power and serve as many customers as possible.

While microgrids can increase the resiliency of the grid, they need to automatically perform certain critical functions like balancing energy production with energy consumption and reconfiguring if part of the system becomes damaged or unavailable. This self-healing capability must also be able to avoid connecting microgrids in a way that causes problems — for example, by forming an unintentional loop in the circuit. Today, to achieve all of this in microgrids using power inverters, devices that convert the direct current produced by renewable energy sources into alternating current the grid can use, operators must install expensive high-speed communications that can be unreliable during disasters and vulnerable to cyberattacks. The purpose of this project, Ropp said, is to support self-healing using only the measurements that each individual device can make, reducing cost while increasing reliability.

Resilient grids with lots of renewables

One key function that microgrids with lots of inverters need to do is to shut off a few customers when the demand for electricity becomes larger than the supply. In grids powered by natural gas, coal or nuclear power plants, when this demand-supply imbalance occurs, the frequency of the grid drops. When the existing relay algorithms detect this, they disconnect power to portions of the grid. However, inverters designed to power microgrids, when they become overloaded, stop regulating the voltage of the power supply, Ropp said. The Sandia-led team developed an algorithm to use this decrease in voltage to tell relays when to disconnect power to less vital customers.

During the wake of a natural disaster such as a hurricane or earthquake, hospitals, assisted living facilities and water treatment plants are especially vital and thus critical to keep powered. Banks, grocery stores and recreation centers or schools that serve as evacuation centers are also quite important for the functioning of a community. Individual homes and neighborhoods often aren’t as vital.

The team also developed algorithms that allow the system to self-assemble in ways that avoid damaged areas. The team used computer-aided-design software to model a small system of three interconnected microgrids and showed how even without communications, their algorithms allowed the system to balance power production and consumption, isolate certain issues such as tree-downed lines or a damaged power plant and work around the issue to restore power to important facilities, Ropp said. The researchers shared their results in a paper published as part of the 2022 North American Power Symposium.

“A lot of good work has been done on how to protect circuits, equipment and people from issues on the grid, which is why our electric grid is very safe and reliable,” said Olga Lavrova, an associate professor of electrical engineering and former Sandia employee involved in the project. “However, when we have a lot of renewables, solar and wind, we need to make some changes to this logic, which is the focus of the project.”

Avoiding microgrid loops

Most of North America’s grid infrastructure was designed to have single power lines with one-way power flow to houses, offices and other average customers. Thus the grid is not currently designed to be stable when operated in a loop, said Ropp and Matthew Reno, another Sandia electrical engineer involved in the project. Only certain custom-designed portions of the system can operate as a loop.

Microgrids and distributed resources like rooftop solar increase overall resiliency but also allow the chance for the grid to assemble into an unstable loop. Reno said, “We were trying to come up with possible measurements to figure out if the two sides were already connected so that closing the switch would form a loop.”

The team looked at some mathematical methods a breaker could use to determine whether the portions of the grid on either side of the breaker are powered by the same power supply and determined that two such methods worked for this purpose. The researchers shared a comparison of these methods in a paper published in the scientific journal IEEE Transactions on Power Delivery.

The team is also working on a solution to a similar problem: what to do when a power line that normally is at the end of the system finds itself supporting more current than it is rated for. They’ve developed a Morse-code-like method where an overloaded line relay modulates the voltage by opening and closing in a specific pattern, and the relays for lower-priority customers can detect this pattern and disconnect themselves until the line is no longer overloaded, Ropp said.

While this could be considered communication, it doesn’t need a separate system, which might be vulnerable to hackers, or a human operator — it uses the power line itself to transmit the signal.

The researchers have been working on ways to improve the performance of these methods. For example, they have developed a method to quickly divide the microgrid into smaller sub-microgrids when an issue is detected. The hope is that this would isolate the issue to just one sub-microgrid, allowing the others to operate normally. The team’s initial testing suggests that this method of defining microgrid boundary points works sometimes, but not all the time, so there is more work to do.

Future work testing and expanding the library

Ropp and the team would like to work with manufacturers of line and load relays to incorporate their library of algorithms into the companies’ products, first to test them in a hardware-in-the-loop testbed and then possibly in real life at test facilities such as Sandia’s Distributed Energy Technologies Laboratory or at a similar medium-voltage facility at New Mexico State University, Lavrova said.

“We definitely want this to become something that people can really use, especially low-income communities that can’t afford fiber optic communications at every single point on every single electrical circuit,” Ropp said. “You can actually get very good performance and very good resilience using our library of algorithms. And if you do have the communications, this can be a backup.”

The research project was funded by Sandia’s Laboratory Directed Research and Development program and the Department of Energy’s Office of Electricity’s Microgrid Program. At New Mexico State University, one undergraduate student and three master’s students have been involved in the project, principally working on the computational modeling. Two additional graduate students, one from the Georgia Institute of Technology and one from Duke University, have been involved as Sandia summer interns.

Sandia National Laboratories is a multimission laboratory operated by National Technology and Engineering Solutions of Sandia LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration. Sandia Labs has major research and development responsibilities in nuclear deterrence, global security, defense, energy technologies and economic competitiveness, with main facilities in Albuquerque, New Mexico, and Livermore, California.

Sandia news media contact: Mollie Rappe,, 505-228-6123