An Efficient Learning-Based Solver for Two-Stage DC Optimal Power Flow with Feasibility Guarantees
Ling Zhang, Daniel Tabas, Baosen Zhang
TL;DR
This paper tackles uncertainty in two-stage DCOPF by learning a feasible, fast policy using two neural networks: one for the first stage and one for the recourse cost. Feasibility is guaranteed by a gauge map that maps neural outputs to the DCOPF constraint set, enabling end-to-end, unsupervised training that minimizes the actual two-stage cost. The approach achieves orders-of-magnitude speedups over traditional solvers while maintaining near-benchmark quality on IEEE 118-bus and 2000-bus systems, and outperforms affine policies and simple scenario-reduction baselines. The method is scalable and leverages scenario-based forecasting within a principled, constraint-aware learning framework, with potential extensions to AC OPF in future work.
Abstract
In this paper, we consider the scenario-based two-stage stochastic DC optimal power flow (OPF) problem for optimal and reliable dispatch when the load is facing uncertainty. Although this problem is a linear program, it remains computationally challenging to solve due to the large number of scenarios needed to accurately represent the uncertainties. To mitigate the computational issues, many techniques have been proposed to approximate the second-stage decisions so they can be dealt more efficiently. The challenge of finding good policies to approximate the second-stage decisions is that these solutions need to be feasible, which has been difficult to achieve with existing policies. To address these challenges, this paper proposes a learning method to solve the two-stage problem in a more efficient and optimal way. A technique called the gauge map is incorporated into the learning architecture design to guarantee the learned solutions' feasibility to the network constraints. Namely, we can design policies that are feed forward functions and only output feasible solutions. Simulation results on standard IEEE systems show that, compared to iterative solvers and the widely used affine policy, our proposed method not only learns solutions of good quality but also accelerates the computation by orders of magnitude.
