PDF

GridSFM: A Foundation Model for Solving AC Optimal Power Flow

Luke Bhan, Weiwei Yang

2026enoptimal power flowmachine learningneural networks

Abstract

Language:

We introduce GridSFM, a framework that combines a pretrained foundation model across grid topologies with physics-informed fine-tuning for solving AC Optimal Power Flow (AC-OPF) at scale. It is a 15 million parameter physics-inspired graph neural network pretrained across 54 topologies of 500 to 4,000 buses. Our model attains a 2.45% zero-shot generation cost error on a 10,000 bus case held-out operating conditions with no degradation as system size grows. Building on this, we pair the pretrained backbone with a physics-informed fine-tuning design based on Newton’s method for power flow. With only 100 solved instances, GridSFM adapts to unseen grids up to 10,000 buses. We show it outperforms single topology, dedicated neural network models that are trained on more data, both in terms of cost and solver iterations when deployed as warm starting points. In designing this foundation model, we overcome the fact that the feasible set for AC-OPF can be disconnected. This is an obstruction that prevents any continuous neural network from approximating the solution map. To do so, we lift the problem and relax its constraints with logarithmically penalized slacks. We prove that the resulting elastic feasible set is contractible, that the AC-OPF minimizers remain minimizers of the elastic problem above an explicit penalty threshold, and that projecting an approximate solution back onto the AC-OPF feasible set is well posed. We release all models, data, and code so that the community can build on a shared starting point for AC-OPF.

Download

Cite This Work

@article{57257668-31e0-4c8e-9d86-f4abe90ca5e5,
  title={GridSFM: A Foundation Model for Solving AC Optimal Power Flow},
  author={Luke Bhan and Weiwei Yang},
  year={2026},
  language={en}
}
TY  - JOUR
TI  - GridSFM: A Foundation Model for Solving AC Optimal Power Flow
AU  - Luke Bhan
AU  - Weiwei Yang
PY  - 2026
LA  - en
ER  -

Similar Items

Artificial intelligence-aided materials design: AI-algorithms and case studies on alloys and metallurgical processes

Rajesh Jha, Bimal Kumar Jha

This book describes the application of artificial intelligence (AI) and machine learning (ML) concepts to develop predictive models that can be used t

2022enPDF

Optimization of Integrated Steel Plant R

This paper addresses the challenge of assessing the feasibility of wind power plant projects at sites with insufficient or no local historic wind data

2025enPDF

Design for Recovery of Precious and Base

2026enPDF

Electrochemical techniques for a cleaner

Important advances in electrochemical engineering technology over the last three decades have fostered the development of a lternative methods to alle

2026enPDF

Environmental and Human Health Risks Ass

2026enPDF

The Recovery of Precious and Base Metals

Increasing volumes of waste printed circuit boards from obsolete electronic equipment posed escalating environmental risks and resource losses due to

2026enPDF