Skip to main content
Vincenzo Ceccarelli Grimaldi

Physics-informed AI

GridPINNs

Open-core Python library and interactive website for physics-informed neural networks (PINNs) on power flow, validated against exact analytical solutions on the IEEE 9-bus system.
Public, narrow scopeLicence: MIT

Status

The README states what works today (DC power flow PINN, analytical solver, N-1 contingency sweep, validation report, tests) and lists AC power flow, state estimation, real-time integration and autonomous control as not yet existing.

Problem

Purely data-driven models can violate the physics they are meant to represent. The goal here is narrow: show that a PINN can solve a power-flow problem while respecting the equations, and make the result reproducible.

Approach

A PINN solves DC power flow on the IEEE 9-bus system, trained against the exact analytical solution (P = B′θ) that serves as ground truth. An N-1 single-line-outage sweep reports which contingencies the network survives and which cause islanding. One command regenerates the validation report. The README reports 0.0124 deg RMSE on bus voltage angles against the analytical solution.

Architecture

GridPINNs validation chainLayers from top to bottom: IEEE 9-bus data (Network data and the B′ matrix); then Analytical solver (Exact DC power flow, used as ground truth); then PINN (Trained on the 9-bus power-flow problem); then Validation (Comparison with ground truth · N-1 sweep · report).IEEE 9-bus dataNetwork data and the B′ matrixAnalytical solverExact DC power flow, used as ground truthPINNTrained on the 9-bus power-flow problemValidationComparison with ground truth · N-1 sweep · report

GridPINNs validation chain

  1. IEEE 9-bus data: Network data and the B′ matrix
  2. Analytical solver: Exact DC power flow, used as ground truth
  3. PINN: Trained on the 9-bus power-flow problem
  4. Validation: Comparison with ground truth · N-1 sweep · report

Module structure taken from the library overview in the repository README.

Limits

DC power flow on one benchmark network. The interactive simulators on the site are illustrative demonstrations, not deployed systems. AC power flow and real-time integration do not exist yet.

Related