otherPublished: August 10, 2026

GENCO - A Unified Neural Solver Embedded in a Development Framework for Steady-State Grid Analysis

By Alban Puech, Matteo Mazzonelli, Tamara R. Govindasamy, Mangaliso Mngomezulu, Héctor Maeso-García, Thomas Tolhurst, Javad Bayazi, Ali Moeini, Naomi Simumba, Celia Cintas, David Nelischer, Romeo Kienzler, Jonas Weiss, Anna Varbella, Florian Dörfler, Gabriela Hug, Martin Mevissen, Juan Bernabé-Moreno, François Mirallès, Hendrik F. Hamann, Etienne Vos, Thomas Brunschwiler

Research TL;DR

"A unified neural solver (GENCO) for power flow, optimal power flow, and state estimation, using a geometric corrective approach to enforce physical consistency and achieve 30-85x speedups over classical solvers."

Abstract

Foundation models are transforming business workflows and boosting productivity, yet they remain largely absent from engineering domains such as power system analysis, where strict physical consistency must be enforced. We present GENCO (GEometric Neural Corrective Optimizer), a unified neural solver for steady-state transmission grid analysis that handles power flow (PF), optimal power flow (OPF), and state estimation (SE) within a single architecture and shared network representation. To support advances in neural power system solvers, we introduce the open-source GridFM Development Framework, which standardizes synthetic data generation and training in a low-code environment. We also release large-scale datasets with millions of PF and OPF scenarios across diverse grid topologies to support reproducible benchmarking. We evaluate GENCO on the PFDelta and OPFData benchmarks against state-of-the-art neural solvers and classical solvers, including Newton-Raphson and IPOPT, as well as on real-world Hydro-Québec SCADA data. For large-scale PF, GENCO recovers the full AC operating state, including voltage magnitudes and reactive power that DC-PF cannot provide, while matching DC-PF-level active power-balance residuals. It achieves up to 30x speedups over Newton-Raphson at only 2x the runtime of DC-PF. For OPF, it achieves up to 85x speedups over IPOPT while improving feasibility, optimality, and runtime over DC-OPF. For SE, GENCO is more robust than classical weighted least squares to noisy measurements and network parameter errors, and always returns a high-quality estimate even when weighted least squares fails to converge. Together, the unified architecture and development framework provide a new approach to large-scale steady-state grid analysis, lowering the barrier to entry for power system engineers and marking a step toward Grid Foundation Models.

Technical Analysis & Implementation

GENCO: A Unified Neural Solver for Steady-State Grid Analysis§

GENCO (GEometric Neural Corrective Optimizer) is a single neural architecture that tackles three core steady-state grid analysis tasks: power flow (PF), optimal power flow (OPF), and state estimation (SE). Built on a shared graph representation of the electrical grid, it combines a neural predictor with a geometric corrective step that projects predictions onto the manifold of physically feasible operating states, ensuring consistency with Kirchhoff's laws.

Core Methodology§

At the heart of GENCO is a graph neural network (GNN) that operates on a power grid topology, where buses (nodes) and branches (edges) carry electrical features. The network predicts a candidate solution $\hat{x} = (V, \theta, P, Q)$ where $V$ is voltage magnitude, $\theta$ is phase angle, and $P, Q$ are active/reactive power injections. However, raw neural outputs violate AC power flow constraints:

$$P_i = V_i \sum_{j} V_j (G_{ij} \cos\theta_{ij} + B_{ij} \sin\theta_{ij})$$ $$Q_i = V_i \sum_{j} V_j (G_{ij} \sin\theta_{ij} - B_{ij} \cos\theta_{ij})$$

To enforce these, GENCO applies a Newton-based corrective step (or a differentiable optimization layer) that refines the neural prediction to reduce the residual $r(x) = [P - P^{calc}; Q - Q^{calc}]$ to a user-defined tolerance. The corrective layer is trained end-to-end with a loss that balances prediction error, physical residual, and task-specific objectives (e.g., cost minimization for OPF). This hybrid neural-numerical approach yields both the speed of a learned forward pass and the accuracy of a classical solver.

Unified Training and Framework§

The authors also release GridFM, a low-code development framework that standardizes synthetic data generation and training. It provides plug-and-play modules for creating realistic grid topologies, injecting faults or noise, and generating millions of PF/OPF scenarios. GENCO is pretrained on a diverse corpus of grids, then fine-tuned for specific tasks, echoing the pretrain-then-adapt paradigm of foundation models.

Performance Highlights§

  • PF: Recovers full AC state (including voltage magnitudes and reactive power) with active-power residuals matching DC-PF, while achieving up to 30x speedup over Newton-Raphson and only 2x the runtime of DC-PF.
  • OPF: Up to 85x speedup over IPOPT, with better feasibility and optimality than DC-OPF.
  • SE: More robust to noisy measurements and parameter errors than weighted least squares, always producing a valid estimate.

Implementation Sketch§

The following PyTorch-style pseudocode illustrates the core training loop of GENCO:

import torch
import torch.nn as nn

class GeometricCorrectiveLayer(nn.Module):
    def __init__(self, max_iter=5):
        super().__init__()
        self.max_iter = max_iter

    def forward(self, x_hat, grid):
        # x_hat: (B, N, 4) [V, theta, P, Q]
        # grid: power system model with admittance matrices
        x = x_hat.detach().clone()
        for _ in range(self.max_iter):
            r = grid.residual(x)          # AC power mismatch
            J = grid.jacobian(x)          # power flow Jacobian
            dx = torch.linalg.solve(J, -r)
            x = x + dx
            if torch.norm(r, dim=-1).max() < 1e-6:
                break
        # Combine learned and corrected features
        return x + 0.1 * (x_hat - x)  # residual connection

class GENCO(nn.Module):
    def __init__(self, hidden_dim=128):
        super().__init__()
        self.encoder = nn.GraphTransformer(...)  # or GNN
        self.corrective = GeometricCorrectiveLayer()

    def forward(self, grid, task='PF'):
        z = self.encoder(grid)
        x_hat = self.decode(z, task)   # task-specific head
        x_corrected = self.corrective(x_hat, grid)
        return x_corrected

Why It Matters§

GENCO represents a significant step toward Grid Foundation Models—large, pretrained neural solvers that can be adapted to multiple grid-analysis tasks with minimal retraining. By unifying PF, OPF, and SE in one architecture, it lowers the barrier for power engineers to leverage deep learning while retaining the physical guarantees required for reliable grid operation.

SHARE RESEARCH: