Counterfactual Explanations for Power System Optimisation
Benjamin Fritz, Waqquas Bukhsh
TL;DR
The paper tackles the explainability gap in power-system optimisation by introducing counterfactual explanations (CEs) that identify minimal input changes needed to move a solution into a region aligned with user expectations. It formulates CE generation as a bilevel optimization problem and develops methods for linear (KKT-based) and MILP lower levels, including decomposition (DECOMP) and data-driven cuts (DECOMP+cut). Through extensive numerical experiments on DCOPF and UC problems, it demonstrates that exact solutions become challenging for large networks, but data-driven heuristics can dramatically speed up explanations with modest impacts on minimality. The results highlight practical pathways to provide transparent, need-driven rationale for dispatch decisions and propose future work to broaden perturbation types and integrate natural-language interfaces.
Abstract
Enhanced computational capabilities of modern decision-making software have allowed us to solve increasingly sophisticated optimisation problems. But in complex socio-economic, technical environments such as electricity markets, transparent operation is key to ensure a fair treatment of all parties involved, particularly regarding dispatch decisions. We address this issue by building on the concept of counterfactual explanations, answering questions such as "Why was this generator not dispatched?" by identifying minimum changes in the input parameters that would have changed the optimal solution. Both DC Optimal Power Flow and Unit Commitment problems are considered, wherein the variable parameters are the spatial and temporal demand profiles, respectively. The thereby obtained explanations allow users to identify the most important differences between the real and expected market outcomes and observe which constraints have led to the solution. The framework uses a bilevel optimisation problem to find the counterfactual demand scenarios. State-of-the-art methods are compared with data-driven heuristics on the basis of computational efficiency and explanation accuracy. Results show that leveraging historical data from previously solved instances can provide significant speed benefits and allows us to derive explanations in cases where conventional methods would not be tractable.
