Introduction
The Alternating Current Optimal Power Flow (ACOPF) problem is fundamental to the economic and secure operation of power grids. As a non-convex, non-linear optimization task, solving ACOPF in real-time for large-scale systems remains computationally challenging. Deep Neural Networks (DNNs) have emerged as promising "optimization proxies," capable of predicting optimal solutions in milliseconds. However, these models often struggle with "tail-risk"—large prediction errors in regions where physical constraints (e.g., generator limits or line thermal bounds) change their active status. These transitions create non-smooth "kinks" in the solution space that standard uniform sampling often misses.
Methodology
This work introduces a constraint-informed Active Learning (AL) framework designed to improve the robustness of ACOPF proxies by targeting these critical transition regions. The framework employs a dual-network architecture:
- Proxy Network ($\hat{h}$): Learns to map load profiles to optimal generation and voltage setpoints.
- Active Set Classifier ($\hat{h}_a$): Predicts the set of active constraints for a given input, providing a structural abstraction of the optimization geometry.
The sampling process involves Bucketization via k-MEANS++ to ensure input diversity, followed by Active Set Filtering. The algorithm identifies validation points with high error and uses $\hat{h}_a$ to select unlabeled samples with similar active constraint profiles. Two selection metrics are compared: AS-raw (L1-distance in input space) and AS-pen (distance in the proxy's penultimate layer), the latter capturing higher-level structural features.
Experimental Evaluation
The framework was evaluated on standard benchmarks from the PGLib-OPF library, including the 89_pegase (medium European grid) and 300_ieee systems. Synthetic load profiles were generated to cover low, mid, and high demand regimes to ensure the models were tested across diverse operational realities.
Results and Discussion
The proposed active learning strategies, particularly AS-pen and AS-raw, demonstrate significant improvements in reducing worst-case prediction errors compared to random sampling and existing bucketed methods like BAS-IG.
As shown in the figures, the constraint-informed methods consistently achieve lower L1 loss in the "tails" of the error distribution (p90, p80, p70). This indicates that the models are more reliable in extreme operational scenarios where constraints are likely to be active. In the 89_pegase case, the method reached 90% of its peak performance four rounds earlier than baselines, representing a saving of over 1,200 expensive optimization solves.
Sensitivity analysis suggests that prioritizing "exploitation"—targeting known high-error regions identified by active sets—is more effective for reducing tail risk than pure exploration. Across all test cases, the constraint-informed approach showed consistently lower losses in the "tails" of the error distribution, making the proxies much more trustworthy for critical infrastructure.
Conclusion
By incorporating physical constraint information into the active learning loop, this framework significantly enhances the reliability of DNN-based ACOPF proxies. While tested on systems up to 1,354 buses, future work will focus on scaling these methods to even larger grid topologies and integrating more complex domain knowledge, such as N-1 security constraints, into the sampling process.
Summary updated