DiffOPF: Diffusion Solver for Optimal Power Flow
Milad Hoseinpour, Vladimir Dvorkin
TL;DR
DiffOPF addresses the inherently multi-valued and non-convex AC-OPF by learning a joint distribution of loads and dispatch from historical data and enabling conditional sampling of dispatch plans given loads. By treating OPF as a conditional diffusion problem, it produces a diverse set of statistically credible warm starts that can be selectively used to balance cost and constraint satisfaction. The approach provides a theoretical sample-complexity bound and demonstrates superior performance to single-valued deep learning OPF solvers on multiple benchmarks, with clear practical benefits for risk-aware operational decision-making. Future work targets runtime acceleration through diffusion distillation and integrating constraints directly into the diffusion process for end-to-end constrained optimization.
Abstract
The optimal power flow (OPF) is a multi-valued, non-convex mapping from loads to dispatch setpoints. The variability of system parameters (e.g., admittances, topology) further contributes to the multiplicity of dispatch setpoints for a given load. Existing deep learning OPF solvers are single-valued and thus fail to capture the variability of system parameters unless fully represented in the feature space, which is prohibitive. To solve this problem, we introduce a diffusion-based OPF solver, termed \textit{DiffOPF}, that treats OPF as a conditional sampling problem. The solver learns the joint distribution of loads and dispatch setpoints from operational history, and returns the marginal dispatch distributions conditioned on loads. Unlike single-valued solvers, DiffOPF enables sampling statistically credible warm starts with favorable cost and constraint satisfaction trade-offs. We explore the sample complexity of DiffOPF to ensure the OPF solution within a prescribed distance from the optimization-based solution, and verify this experimentally on power system benchmarks.
