A Deep Neural Network-based Frequency Predictor for Frequency-Constrained Optimal Power Flow

Fan Jiang, Xingpeng Li, Pascal Van Hentenryck

Abstract

This paper presents a novel Deep Neural Network (DNN) based frequency predictor designed for Frequency-Constrained Optimal Power Flow (FCOPF) in modern power grids. As renewable energy integration reduces rotational inertia, maintaining frequency stability becomes critical. The proposed method leverages a DNN trained on high-fidelity electromagnetic transient (EMT) data to accurately predict Rate of Change of Frequency (RoCoF) and frequency nadir. By linearizing the DNN using mixed-integer linear programming (MILP), the model is integrated into real-time dispatch optimization. Results on a modified IEEE 9-bus system demonstrate that the DNN-FCOPF significantly outperforms traditional linear models in accuracy while meeting the computational demands of real-time operations.

Introduction

Modern power grids are undergoing a significant transformation, shifting from traditional synchronous generators to inverter-based renewable energy sources. This transition leads to a reduction in "rotational inertia," making the grid's frequency more susceptible to rapid fluctuations following disturbances like generator trips. To maintain stability, grid operators rely on Frequency-Constrained Optimal Power Flow (FCOPF). However, traditional methods face a trade-off: exact differential equation solvers are too slow for real-time use, while simplified linear approximations are often wildly inaccurate, failing to capture the complex nonlinear dynamics of the grid.

Methodology

The researchers developed a three-stage approach to provide high-fidelity accuracy at optimization-level speeds. First, they used PSCAD/EMTDC to generate a dataset of electromagnetic transient (EMT) simulations, which capture the fast, sub-cycle dynamics essential for measuring RoCoF accurately. Second, they trained a fully connected DNN to map grid conditions—including generator outputs, load levels, and contingency locations—to frequency stability metrics.

DNN architecture for frequency stability prediction

To integrate this "black box" model into an optimization framework, the authors linearized the neural network using a set of mixed-integer linear programming (MILP) constraints. By utilizing ReLU activation functions, the DNN can be represented as a series of linear switches (the "big-M" method), making it compatible with standard industrial power flow solvers like Gurobi.

Experimental Setup

The study utilized a modified IEEE 9-bus system for validation. Training data was generated with varying loads (90%–110%) and generator outputs (85%–115%). The model focused on N-1 contingencies, specifically the tripping of generators G11, G21, or G31. To test robustness, the model was evaluated against a "High-Load Scenario" (120% load) to check its performance on out-of-distribution data.

Results and Discussion

The authors compared their DNN-FCOPF against a Traditional OPF (T-OPF) and a simplified Linear FCOPF (L-FCOPF). The results highlighted a significant leap in predictive accuracy and grid reliability:

  • Accuracy: In high-load scenarios, the traditional linear model suffered from a 45.11% error in predicting RoCoF, whereas the DNN-based model achieved a much lower 7.07% error. Frequency nadir prediction was exceptionally precise, with an error of only 0.05%.
  • Reliability: Under test conditions, the DNN-FCOPF was the only model that successfully adjusted generator outputs to ensure the grid stayed above the 59.5 Hz safety threshold during a contingency.
  • Computational Efficiency: The DNN-FCOPF solved in approximately 1 to 2 seconds. While slightly slower than traditional models, it remains well within the 5-minute window required for real-time economic dispatch.
Frequency and RoCoF response comparison

Conclusion

The paper demonstrates that machine learning can bridge the gap between high-fidelity simulation and real-time optimization. While the DNN-FCOPF results in slightly higher operating costs, it is the only model that guarantees grid safety during disturbances in low-inertia environments. Future work will focus on scaling this framework to larger, more complex power systems and incorporating various renewable energy control strategies.

Summary updated

BibTeX
@inproceedings{jiang2025deep,
  author = {Fan Jiang and Xingpeng Li and Pascal Van Hentenryck},
  title = {{A Deep Neural Network-based Frequency Predictor for Frequency-Constrained Optimal Power Flow}},
  booktitle = {IAS},
  year = {2025},
  doi = {10.1109/ias62731.2025.11061730},
}
Figure