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

Learning Invariant Stabilizing Controllers for Frequency Regulation under Variable Inertia

Priyank Srivastava, Patricia Hidalgo-Gonzalez, Jorge CortésarXiv 2022

Abstract

Declines in cost and concerns about the environmental impact of traditional generation have boosted the penetration of renewables and non-conventional distributed energy resources into the power grid. The intermittent availability of these resources causes the inertia of the power system to vary over time. As a result, there is a need to go beyond traditional controllers designed to regulate frequency under the assumption of invariant dynamics. This paper presents a learning-based framework for the design of stable controllers based on imitating datasets obtained from linear-quadratic regulator (LQR) formulations for different switching sequences of inertia modes. The proposed controller is linear and invariant, thereby interpretable, does not require the knowledge of the current operating mode, and is guaranteed to stabilize the switching power dynamics. We also show that it is always possible to stabilize the switched system using a communication-free local controller, whose implementation only requires each node to use its own state. Simulations on a 12-bus 3-region network illustrate our results.

Introduction

In traditional power grids, massive spinning generators provide "inertia"—a physical resistance to changes in frequency. When a load spikes, this stored kinetic energy buys time for control systems to react. However, renewable energy sources like solar and wind are connected via power electronics that decouple this mechanical inertia from the grid. As the mix of renewables changes throughout the day, the grid's total inertia becomes "time-varying."

Existing frequency controllers are usually designed for a fixed, known inertia. If the inertia drops or shifts rapidly, these controllers can fail, leading to frequency excursions or even blackouts. While machine learning (ML) offers a way to "learn" optimal control from data, standard ML models often lack the formal stability guarantees required for critical infrastructure. This paper addresses the challenge of creating a controller that is both optimal (learned from data) and robustly stable (guaranteed to work regardless of how the inertia switches).

Methods

The authors propose a data-driven, imitation-based approach to design a single, time-invariant controller ($u = Kx$). The methodology consists of four primary steps:

  1. Data Generation: Simulating various scenarios of a power grid with switching inertia modes. For each scenario, a Linear-Quadratic Regulator (LQR) problem is solved to find optimal control trajectories.
  2. Imitation Learning: A least-squares optimization problem is formulated to find a linear, time-invariant controller that best mimics the LQR data.
  3. Stability Constraints: Unlike standard regression, constraints are added to the optimization using a Common Lyapunov Function to ensure the learned controller stabilizes the system for every possible inertia mode and switching sequence.
  4. Sparsity Promotion: A penalty term encourages "sparsity," allowing for the design of distributed or local controllers where nodes only need information from their immediate neighbors or themselves.
The 12-bus 3-region network used for simulation and training data generation.

Key Results

The study compared three types of learned controllers: Optimal (full information), Distributed (sparse/neighbor communication), and Unconstrained (standard ML without stability checks). The results highlight a critical trade-off between communication and performance.

As shown in Figure 2, the "Unconstrained" controller failed to stabilize the system during rapid inertia switching, leading to wild frequency oscillations. In contrast, the proposed stable controllers remained robust. While the "Optimal" controller outperformed the "Distributed" version by about 62% in terms of control effort, the Distributed controller achieved stability while requiring zero communication between distant regions, proving that local action can protect the global grid.

Frequency deviation over time for optimal, distributed, and unconstrained controllers under switching inertia.

Discussion and Conclusion

This research demonstrates that stability can be encoded directly into the training constraints of ML models for power systems, ensuring safety by construction. By designing a time-invariant controller, system operators do not need to measure the exact current inertia of the grid in real-time to regulate frequency effectively.

Future work will address the limitations of the current "DC approximation" by extending the framework to nonlinear AC power dynamics. Additionally, researchers aim to improve the scalability of solving the Bilinear Matrix Inequalities (BMIs) required for stability constraints to accommodate modern grids with thousands of buses.

Summary updated

BibTeX
@misc{srivastava2022learning,
  author = {Priyank Srivastava and Patricia Hidalgo-Gonzalez and Jorge Cortés},
  title = {{Learning Invariant Stabilizing Controllers for Frequency Regulation under Variable Inertia}},
  year = {2022},
  eprint = {2203.04502},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04502},
}
Figure