AC-Network-Informed DC Optimal Power Flow for Electricity Markets

Gonzalo E. Constante-Flores, André H. Quisaguano, Antonio J. Conejo, Can Li

TL;DR

This paper introduces a "parametric DC-OPF" (pDC-OPF) that bridges the gap between the speed of linear DC models and the accuracy of non-convex AC physics. By using a neural network to predict demand-scaling parameters that "bake in" AC network effects, the authors achieve near-AC accuracy and market fairness (cost recovery) while maintaining the computational efficiency required for real-time electricity markets.

What Problem Does This Paper Address?

In electricity markets, the Optimal Power Flow (OPF) problem determines the most economical way to dispatch generators to meet demand. The "gold standard" is AC-OPF, which accounts for real-world physics like voltage limits and line losses. However, AC-OPF is non-convex and computationally expensive—often too slow for the fast-paced, high-stakes environment of real-time markets.

To cope, the industry relies on DC-OPF, a linear approximation. While fast, DC-OPF ignores losses and reactive power, leading to "dispatch errors" (inefficient generation) and "price distortions." As the grid faces higher stress from EVs and data centers, these errors translate into millions of dollars in inefficiencies and potential reliability risks. Furthermore, many machine-learning-based alternatives focus purely on physics, often ignoring critical market properties like revenue adequacy (the market operator shouldn't lose money) and cost recovery (generators should remain profitable).

Methods

The authors propose a hybrid approach that keeps the linear structure of the DC model but "smarts it up" using data.

  1. The Parametric Model (pDC-OPF): They modify the standard DC power balance equation by introducing a scaling parameter, $\beta_i$, for the demand at each node. This parameter acts as a "proxy" that accounts for the losses and reactive power effects usually ignored by DC models.
  2. Bilevel Optimization (Offline Training): To find the "ground truth" for these $\beta$ parameters, they solve a complex bilevel problem. The upper level minimizes the difference between the pDC-OPF results and the true AC-OPF results (both in terms of dispatch quantities and Locational Marginal Prices, or LMPs). Crucially, they include constraints to ensure the resulting prices satisfy market fairness properties.
  3. Supervised Learning (Online Execution): Since solving the bilevel problem is too slow for real-time use, they train a Neural Network (NN) to learn the mapping from demand profiles to the optimal $\beta$ parameters.
  4. Inference: In real-time, the operator feeds current demand into the NN to get $\beta$, then solves the resulting linear pDC-OPF problem in milliseconds.

Datasets

The approach was validated using standard benchmarks from the Power Grid Library (PGLib-OPF) v23.07:

  • IEEE 30-bus system: A small-scale test case.
  • IEEE 57-bus system: A medium-scale case with significant reactive power constraints.
  • IEEE 118-bus system: A larger, more complex network. The authors generated thousands of demand samples (7,500 to 18,500 per system) by uniformly sampling active and reactive power demands around nominal values to create a robust training and testing set.

Key Insights and Ideas

  • Interpretability via Parameters: Unlike "black-box" end-to-end neural networks that output dispatch directly, this model is interpretable. The $\beta$ parameters represent a physical correction; if $\beta > 1$, the model is effectively "padding" the demand to account for local losses or reactive needs.
  • Market-Aware Machine Learning: Most ML-for-Power papers optimize for Mean Squared Error (MSE). This paper argues that for market applications, you must optimize for economic properties. By embedding cost recovery and revenue adequacy into the bilevel training objective, the resulting model is "market-safe."
  • The Power of Regularization: The authors used $\ell_2$-regularization on the $\beta$ parameters. This prevents the parameters from becoming erratic or overly sparse, which makes the neural network's job much easier and leads to smoother, more predictable performance.

Key Results

  • Cost Accuracy: The pDC-OPF reduced mean cost errors significantly. For the 118-bus system, the standard DC-OPF had a ~4.18% error, while the pDC-OPF dropped this to 0.42%.
  • Feasibility: The dispatch solutions from pDC-OPF were 1 to 5 orders of magnitude closer to satisfying true AC physics constraints compared to the standard DC model.
  • Price Discovery: In the 57-bus system, standard DC-OPF fails to capture high-price "tails" caused by reactive power limits. The pDC-OPF successfully captured these price signals, which are vital for investment incentives.
  • N-1 Generalization: Perhaps most impressively, the model performed well on network topologies it had never seen during training (N-1 contingencies), suggesting it learns fundamental relationships rather than just memorizing the training grid.

Limitations and Future Work

  • Training Complexity: Solving the bilevel optimization problem to generate the training labels is computationally intensive. The authors suggest moving toward an end-to-end differentiable pipeline (using tools like JuMP or OptNet) to streamline this.
  • Scalability: While it works for 118 buses, real-world ISO grids have thousands of nodes. Future work will need to address the "curse of dimensionality" in the neural network's input/output layers.
  • Voltage Modeling: While $\beta$ corrects for demand, it doesn't explicitly model voltage magnitudes. The authors plan to explore parametric linear models that can more directly capture voltage and reactive power constraints.

Summary updated

BibTeX
@inproceedings{constanteflores2025ac,
  author = {Gonzalo E. Constante-Flores and André H. Quisaguano and Antonio J. Conejo and Can Li},
  title = {{AC-Network-Informed DC Optimal Power Flow for Electricity Markets}},
  booktitle = {HICSS},
  year = {2025},
  doi = {10.24251/hicss.2025.367},
}
Figure