# UNION: A Unified AC-OPF Framework for Topology-Varying Real-Time Grid Operation

arXiv: https://arxiv.org/abs/2608.25784 · HTML: https://mlsanity.com/paper/2608.25784/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 26 Aug 2026.

## Built on by (most cited first, 1 of 1)

- [GridSFM: A Foundation Model for Solving AC Optimal Power Flow](https://mlsanity.com/paper/2609.30173/) (2026)

## Abstract (arXiv)

Secure real-time grid operation requires fast AC optimal power flow (AC-OPF) tools that stay accurate and feasible as operating conditions and topology change. Learning-based methods have advanced, but most are trained per system or per topology, and delivering an operating point that satisfies every operational limit remains challenging. This paper proposes UNION, a unified graph-based AC-OPF framework for heterogeneous systems and topology-varying operation. UNION proposes a shared graph encoder, a scalar-gated aggregation with explicit consensus correction, and a sparse-aware differentiable implicit layer embedding the AC power-flow equations. The remaining inequalities are handled by primal-dual training and the deterministic restoration layer. A single model trained jointly across seven systems, including a real-world 4,492-bus Korean transmission grid, attains a 1.23% mean objective gap and satisfies every operational limit on 99.56% of test instances. It sustains this under zero-shot N-1 contingencies, i.e., line and generator outages, and over five days of time-varying Korean topologies; it retains full snapshot coverage at a 2.51% gap under lightweight online fine-tuning. UNION pre-restoration inference takes 55-58 ms per instance on the three largest systems, and 108-114 ms including restoration. These results indicate that one jointly trained, physics-consistent model can support real-time AC-OPF across heterogeneous systems and evolving topologies.
