Learning Active Constraints for Bilevel Optimization: Evaluating Classification Metrics on Real-World Distribution System Data

Lingkang Jin, Laurens Bliek, Nikolaos G. Paterakis

Published: 01 Jan 2025, Last Modified: 17 Feb 2026IEEE Transactions on Smart GridEveryoneRevisionsCC BY-SA 4.0
Abstract: Bilevel optimization provides a useful power system modeling framework, but it is computationally demanding due to its NP-hard nature and the need for frequent solutions under uncertainty. To mitigate this, machine learning can be used to predict active constraints, enabling the deduction of a reduced problem formulation. However, prediction errors are inevitable, and synthetic training data may not fully reflect real-world conditions. This paper presents a structured approach to managing uncertainty by classifying constraints into three sets – active, inactive, and unpredictable – where each constraint is modeled using a separate binary classifier. The method is applied to a real-world bilevel distribution system optimization problem: the upper level solves an AC Optimal Power Flow, while the lower level minimizes residential photovoltaic power curtailment. Training data are generated from daily exact bilevel solutions, incorporating variability in electricity prices, consumption, and photovoltaic power generation. Results show that the reduced formulation effectively solves the problem, up to 10 times faster with a marginal objective value deviation (-3% to +4%).
Loading