Dynamic Domain Adaptation-Driven Physics-Informed Graph Representation Learning for AC-OPF

Hongjie Zhu, Zezheng Zhang, Zeyu Zhang, Yu Bai, Shimin Wen, Huazhang Wang, Daji Ergu, Ying Cai, Yang ZhaoarXiv 2025 · DOI

Abstract

Managing power grids requires solving the Alternating Current Optimal Power Flow (AC-OPF) problem, a non-linear and non-convex optimization challenge. While traditional solvers are slow, deep learning models often fail to satisfy physical constraints. This paper introduces DDA-PIGCN, a novel framework that integrates physical laws directly into a Graph Transformer. By employing Dynamic Domain Adaptation (DDA) to adjust constraints layer-by-layer and a Dijkstra-based spatiotemporal feature extractor, DDA-PIGCN achieves near-perfect feasibility and significantly higher accuracy than existing state-of-the-art neural solvers across various IEEE test cases.

Introduction

The AC-OPF problem is central to power grid operations, aiming to minimize generation costs while adhering to physical laws like Kirchhoff’s laws and operational limits like voltage bounds. Traditional mathematical solvers, though rigorous, are often too slow for real-time applications. Deep learning offers a faster alternative, but standard models are "physics-blind," frequently producing solutions that violate critical grid constraints. Previous physics-informed models attempted to address this via penalty terms in the loss function, but they often struggle with the complex, long-range dependencies of large-scale power topologies.

Methodology

DDA-PIGCN (Dynamic Domain Adaptation-Driven Physics-Informed Graph Convolutional Network) addresses these challenges through a multi-faceted architecture that evolves from traditional neural approaches.

Evolution of AC-OPF architectures: (a) standard NN, (b) GCN, (c) Physics-Informed GCN, and (d) the proposed DDA-PIGCN.

The framework is built upon four key pillars:

  1. Graph Transformer Backbone: Utilizing the UniMP architecture, the model captures complex relationships between buses (nodes) and transmission lines (edges).
  2. Hierarchical Physics-Informed Constraints (HPIC): Physical constraints are embedded into every layer of the encoder, guiding the internal feature mapping to remain physically consistent throughout the learning process.
  3. Dynamic Domain Adaptation (DDA): This core innovation dynamically adjusts constraint intensity and boundaries layer-by-layer based on real-time violation monitoring, allowing the network to adaptively learn representations that satisfy operational limits.
  4. Temporal Multi-Feature Extraction (TMFE): To capture spatiotemporal patterns, Dijkstra’s algorithm serializes the graph based on electrical distances (conductance and susceptance), followed by 1D convolutions to extract domain-specific spatial intelligence.
Detailed view of the DDA-PIGCN architecture, featuring the Temporal Multi-Feature Extraction and Dynamic Domain Adaptation modules.

Evaluation and Results

The model was evaluated on IEEE test cases ranging from 9 to 300 buses, with ground truth data generated via MATPOWER. DDA-PIGCN consistently outperformed baselines like OPF-HGNN and Deepopf-V.

  • Accuracy: Achieved a Mean Absolute Error (MAE) as low as 0.0011 on the IEEE 9-bus system.
  • Feasibility: Maintained constraint satisfaction rates between 99.6% and 100.0%, a critical requirement for real-world deployment.
  • Generalization: Demonstrated stability across varying grid sizes, proving the scalability of the hierarchical constraint approach.

Discussion and Limitations

The success of DDA-PIGCN stems from treating physical constraints as an adaptive curriculum. By adjusting the "hardness" of constraints based on performance, the model avoids the gradient instability typical of strict physics enforcement. Furthermore, prioritizing electrical distance over simple Euclidean distance allows the model to better reflect the underlying physics of power flow.

However, some limitations remain. Future research should address the preprocessing overhead of Dijkstra-based serialization for extremely large grids and explore the model's performance under "N-1" contingency scenarios involving topology changes. Additionally, a detailed comparison of end-to-end inference latency against high-speed traditional solvers would further validate its real-time applicability.

Summary updated

BibTeX
@misc{zhu2025dynamic,
  author = {Hongjie Zhu and Zezheng Zhang and Zeyu Zhang and Yu Bai and Shimin Wen and Huazhang Wang and Daji Ergu and Ying Cai and Yang Zhao},
  title = {{Dynamic Domain Adaptation-Driven Physics-Informed Graph Representation Learning for AC-OPF}},
  year = {2025},
  eprint = {2506.00478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00478},
}
Figure