Wangkun Xu, Fei Teng
Decision-focused learning (DfL) trains forecasting models to align downstream decision consequences, such as power-system operating costs. However, its application to realistic power networks is hindered by the requirement to repeatedly solve and differentiate large optimization problems during training. This paper introduces DiffAPQP, a solver-flexible framework and open-source Python package designed for scalable DfL using affine-parametric quadratic programs. The methodology involves automatically canonicalizing quadratic power-system models written in CVXPY into a differentiation-ready form, utilizing solver warm-starts and data updates to accelerate training. Notably, we've established that differentiation via the full KKT system can be efficiently achieved through a reduced system by eliminating inactive inequality constraints. Moreover, for training losses reliant on optimal values, we derived an envelope-theorem-based gradient, thereby avoiding the need to solve an adjoint KKT system, which reduces backward processing time. This work marks the first solver-based end-to-end DfL demonstration on the IEEE 118-bus system with a 24-hour economic-dispatch and redispatch scenario. Experimental results indicate that DiffAPQP can achieve closed-loop speedups ranging from 2.27× to 3.58× compared to CvxpyLayers, with significant reductions in peak memory usage while maintaining comparable operating costs.
@article{aa4c73c4-0854-4bfa-9727-546a13107314,
title={2026 Xu Differentiable Optimization Power Systems},
author={Wangkun Xu and Fei Teng},
year={2026},
language={en}
}TY - JOUR TI - 2026 Xu Differentiable Optimization Power Systems AU - Wangkun Xu AU - Fei Teng PY - 2026 LA - en ER -
Matthew Lau, Sakis Meliopoulos
The increasing deployment of end use power resources in distribution systems has led to the emergence of active distribution systems, which display si
This paper addresses the challenge of assessing the feasibility of wind power plant projects at sites with insufficient or no local historic wind data
Important advances in electrochemical engineering technology over the last three decades have fostered the development of a lternative methods to alle
Increasing volumes of waste printed circuit boards from obsolete electronic equipment posed escalating environmental risks and resource losses due to