# When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment

Learned constraint selection pays only when a spare constraint carries a price

Milad Kazemi, Behzad Kazemtabrizi · arXiv · 2026-11-11

- **Problem** Learned selectors for security-constrained optimal power flow were only benchmarked against the full problem, never against a fixed umbrella set of constraints. Without that comparison, it was unclear whether learning actually adds anything over the strongest simple alternative.
- **Method** The authors use a price-of-a-spare criterion that predicts, from problem data alone, whether a per-instance selector can beat the umbrella. An enforced constraint that is inactive costs nothing, so the umbrella is exactly optimal wherever it is feasible.
- **Results** On fixed SCOPF networks the umbrella was never beaten, with a median of five constraints across 43 networks. In unit commitment, where spares have a price, the predict-repair-reduce pipeline reached a 2.9% cost gap at case118.

## Why the umbrella comparison was never made

SCOPF has to respect post-contingency constraints for every credible outage, and that list grows quickly with system size. Even the preventive DC form can reach about 23 million rows on a 2 000-bus network, and most of those rows are slack. Because most rows never bind, a reduced problem that enforces only the constraints that matter can return the full optimum.

Two families of methods choose that reduced set, and they answer the question in different ways. The umbrella approach finds, once for an operating domain, a minimum set of constraints that encloses the feasible region. Learning-to-optimise methods instead predict, for each instance, the constraints that will bind at its optimum. The two families are rarely compared, because the learning work benchmarks only against the full problem, while the umbrella work asks how to compute the set efficiently.

The authors therefore compare the two families directly, so the umbrella is the baseline a per-instance selector must beat. Their criterion can be read off the problem data before any model is trained.

## Why an extra constraint can be free

An enforced constraint that is inactive at the optimum changes neither the optimiser nor the optimal value. The paper calls such a constraint a spare, and it is free from the perspective of the objective function. Because the active set is contained in the umbrella, the umbrella is exactly optimal on that instance, not merely approximately optimal.

A per-instance selector can therefore only match the umbrella on objective cost. Proposition 1 states this for a convex programme with a strictly convex objective and a constraint qualification.

If the active set lies inside the enforced set, the reduced problem keeps the same optimal value and the same unique optimiser. The proof works because the multipliers that certify the full problem's KKT conditions also certify the reduced problem's conditions. Strict convexity matters, because with a linear cost the reduced problem could return an equally cheap optimiser that violates a dropped constraint.

That is why the labels and every solver in the paper use the regularised, strictly convex problem.

A selector can gain only through two other channels: the computational cost of carrying spares, and a coverage miss when the umbrella omits an active constraint. The paper writes the expected advantage as A = π(\|U\| − E\|S(θ)\|) + (p^U\_miss − p^sel\_miss)κ, where π is the price of a spare. Learned selection is worth building only when A \> 0, and the learnability index ρ = E\|S(θ)\|/\|U\| shows how much of the umbrella an instance binds.

A perfect selector has p^sel\_miss = 0, so this expression bounds what any trained model can deliver.

Unit commitment breaks the argument, because a committed unit pays its no-load cost whether or not the instance needs it. So the criterion predicts that no SCOPF variant has a regime where selection wins, while unit commitment does.

## How the selector and the umbrella are built

The learned selector follows the hybrid L2O architecture of Le et al., adapted to SCOPF. A multilayer perceptron with three hidden layers of 256 ReLU units takes the load and outputs logits over a candidate set. The candidate set is the training-set umbrella plus the 16 tightest constraints outside it, after near-parallel duplicates are removed.

At case118 this leaves 17 candidates out of 3 637 screened constraints. A straight-through estimator turns the logits into a binary selection δ. The differentiable reduced QP then recovers the dispatch under those selected constraints.

The training loss has four terms, and each one acts on either the recovered dispatch or the selection. The cost term charges the recovered generation cost, normalised by the mean training-label cost. A self-supervised penalty charges the overload of every screened constraint, in proportion to that overload. A stop-gradient complementarity term charges that overload to deselected candidates, so dropping a needed constraint is penalised.

A recall-weighted binary cross-entropy pulls the selection towards the labelled active set, with positive-class weight w = 2.

Two gradient corrections let the selection head learn, because without the stop-gradient term a released constraint gets exactly zero gradient.

At deployment, each QP-layer mode is followed by a restoration step that inserts any violated constraint and solves again. SL-direct has no QP, so its predicted dispatch is used as predicted. The umbrella policy runs the same reduced QP on the fixed set U, with no learned selector. The two pipelines differ only in who chooses the enforced constraints, since both share the screen and the reduced QP.

## Fixed-network results against the umbrella

The hybrid ran at ×241 against ×235 for the umbrella, so its speed came with a feasibility cost the umbrella didn't pay. Restoration repaired every QP-layer mode, but the umbrella never needed any restoration. Across five seeds the hybrid stayed at 4.00±1.05% violations, while pure self-supervision swung widely.

The authors then tried six levers to open a regime for learned selection, each aiming for a large umbrella with a small ρ. Corrective ramp constraints gave a growing umbrella, from 8 to 59 to 161. At every ramp budget that saved cost, however, the umbrella equalled the per-instance active set.

Over the 43 measured PGLib-OPF networks, the umbrella has a median of five constraints. The umbrella size shows no trend with bus count, with a Pearson r of 0.15. For case4917\_goc, with \|U\| = 279, the per-instance active set averages about 161 constraints, so a selector has little to remove. None of the six levers opened a regime for learned selection on a fixed network.

## Configuration diversity and certified coverage

Operators change configuration over time, so the umbrella they keep has to cover every configuration they run. Pooled over configurations, the case118 umbrella grows to 57 constraints, compared to 8.43 within any single configuration. That failure is one of safety rather than cost, unlike the static commitment gap in unit commitment.

The pooled umbrella grows from 8.5 at one configuration to 57.0 at 221 configurations, and the curve doesn't flatten. Over 101 synthetic branch-outage configurations, the pooled umbrella has 10 constraints and creeps rather than saturates. The authors conclude that configuration diversity can break static coverage, and that case118 shows the regime exists, not that it occurs at scale.

When the umbrella can no longer be enumerated, the authors certify its coverage with conformal risk control. Constraints are ordered by the number of family configurations in which they bind, and the top λ form a nested family. The miss loss equals 1 when a configuration's active set falls outside the top-λ set. The threshold is chosen on a separate calibration split, and the guarantee is checked on a held-out test split.

The guarantee bounds the probability that a fresh configuration binds an unenforced constraint by α.

The three-way split matters, because building the ordering from the calibration configurations voids the guarantee. That mistake produced a 16.4% empirical miss at α = 0.05. The guarantee rests on exchangeability of configurations, and the authors plan to test that assumption in future work.

## Unit commitment, where a spare has a price

Unit commitment makes a spare cost money, because a committed unit pays its no-load cost whether it runs or not. The authors formulate security-constrained unit commitment as a mixed-integer program solved by HiGHS, with 19 committable units at case118. They compare two static commitments, the static union and a best-feasible static commitment built by greedily removing units.

The static gap is +3.7% at α = 0.4 and +6.9% at α = 0.8, and reaches +12% under the ±40% envelope. The best-feasible static commitment stayed feasible on all 150 single-period test loads, so it is suboptimal rather than unsafe.

The predict-repair-reduce pipeline combines a per-hour neural predictor, a repair step and a per-period dispatch LP. The repair step adds the lowest-cost spare units to any period that security cannot serve, and the dispatch LP has no integer variables. Without repair, the bare predictor was infeasible on 95% of days, and the best static schedule cost 8.6% more.

Even with every training day, the same days stay unserved, because only a repair that creates new commitments can serve them.

## Limitations of the study

The study is DC, so the results don't yet cover AC security constraints. The authors plan to address an AC-native selection in future work, so it isn't tested here.

The unit commitment model is stylised: its units have fixed charges with p min = 0, and security is DC. Because the eight shapes favour nearest neighbours, the comparison is conservative for the pipeline.

Thirteen PGLib networks couldn't be made N-1 feasible on the rating-load ladder. One network, case8387\_pegase, couldn't be labelled, because exact labelling of 200 instances exceeded two 48-hour allocations.

That would also test the certificate's one assumption, exchangeability across configurations, which the authors leave for future work. The authors release code, labelled datasets and result files on publication, so readers can check these limits themselves.

## Paper info

- **Authors**: Milad Kazemi, Behzad Kazemtabrizi
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-11
- **Added**: 2026-11-13
- **Updated**: 2026-11-11
- **Version**: v1
- **arXiv**: 2611.15142
- **Category**: eess.SY · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.15142v1) · [PDF ↗](https://arxiv.org/pdf/2611.15142v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Learning-to-optimise methods for security-constrained optimal power flow (SCOPF) predict the security constraints that bind on each instance and solve only the reduced problem, with reported speed-ups of two to four orders of magnitude over the full problem. We ask whether learned selection beats the strongest learning-free alternative: a fixed umbrella set enforcing every constraint observed to bind in training. Our criterion, the price of a spare, answers this in advance: an enforced but inactive constraint is free, so the umbrella is exactly optimal wherever feasible, and learning can pay only where a spare decision carries a price. We test it systematically, including every PGLib-OPF network up to 10,000 buses. For SCOPF on a fixed network the umbrella is never beaten: its median size is five constraints across 43 networks, with no size trend, and our selector, while reproducing speed-ups of published magnitude (about x80,000 at case500), gains at most 0.25 ms over the umbrella and violates constraints on 4-5% of instances. Configuration diversity can break the umbrella's coverage on a small, densely meshed network but not at 2,000 buses, and we certify coverage with conformal risk control. In unit commitment, where a spare has a price, a static commitment loses 4-12% out of sample, and a predict-repair-reduce pipeline recovers it (cost gap 0.2-2.9%, fully feasible, 16-161x faster than the MILP). In our experiments, whether learning pays depends not on problem size but on whether a spare carries a price.

## Quote from the paper

Milad Kazemi, Behzad Kazemtabrizi (2026). When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment. arXiv:2611.15142v1. https://arxiv.org/abs/2611.15142v1

**BibTeX**

```
@misc{kazemi2026when,
  title = {{When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment}},
  author = {Milad Kazemi and Behzad Kazemtabrizi},
  year = {2026},
  eprint = {2611.15142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15142v1}
}
```

## Other paper commentary

- [Posterior contraction rates for banded approximations of Gaussian processes](https://refivu.com/en/papers/39b2feed-2c3a-4f79-b50f-498773f8d0d9-posterior-contraction-rates-for-banded-approximations-of.md)
- [When and How SignSGD Outperforms SGD: A Functional Scaling Law Perspective](https://refivu.com/en/papers/717fcb11-77f4-44a2-bdd6-2f8dee82543d-when-and-how-signsgd-outperforms-sgd-a-functional.md)
- [RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference](https://refivu.com/en/papers/93a3887b-d2df-450c-a06e-e64cb60d4325-resync-residual-latent-state-synchronization-for-deadline.md)
- [ORCHID-SAGE: Fully Reproducible CALPHAD Assessment from Evidence to Phase Diagram](https://refivu.com/en/papers/7bdc6793-f96c-4909-866a-faa678245608-orchid-sage-fully-reproducible-calphad-assessment-from.md)
- [A Sensitivity Framework for Assessing External Validity](https://refivu.com/en/papers/21950225-6379-406e-8119-a682680084fa-a-sensitivity-framework-for-assessing-external-validity.md)
- ["It's Just a Small Weapon": What Rewarding Misbehavior During RL Does to Character-Trained Models](https://refivu.com/en/papers/ff82eb4f-09a9-4988-85f7-9aec117b7142-it-s-just-a-small-weapon-what-rewarding.md)
- [Science Prediction Universe](https://refivu.com/en/papers/a7e7d76f-1d7b-492e-912f-84d45d06f6fb-science-prediction-universe.md)
- [Human or Synthetic? What a Fixed Budget Buys for Post-Training](https://refivu.com/en/papers/ebc91436-bab8-4ede-b9f3-76225691e038-human-or-synthetic-what-a-fixed-budget-buys.md)
- [Towards Green Text Generation: Memory-Based Speculative Decoding](https://refivu.com/en/papers/d0d9e634-398d-4df3-9710-8a24455c2ce9-towards-green-text-generation-memory-based-speculative.md)
- [Mind the Accuracy-Approval Gap: How Users Evaluate Sycophantic AI in Everyday Tasks](https://refivu.com/en/papers/d62f0b2a-4b25-4637-8d3b-cd531c6a07d1-mind-the-accuracy-approval-gap-how-users-evaluate.md)
- [Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models](https://refivu.com/en/papers/d3386662-50ed-4e67-b429-1af214567cba-pretraining-data-statistics-shape-the-phases-of-learning.md)
- [Shortcuts or Memorisation? Revisiting Data Corruption in Natural Language Understanding with Large Language Models](https://refivu.com/en/papers/47df16a6-990c-4da2-8525-44fedd241d7b-shortcuts-or-memorisation-revisiting-data-corruption-in.md)

## Terms in this paper

- [Multilayer Perceptron](https://refivu.com/en/terms/0892ee9508d3-multilayer-perceptron)
- [straight-through estimator](https://refivu.com/en/terms/daa90b015f59-straight-through-estimator)
- [conformal risk control](https://refivu.com/en/terms/7339470066f8-conformal-risk-control)
- [OPFData](https://refivu.com/en/terms/102636bd67cc-opfdata)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bffeb870-d297-4786-a31b-cd7ba9c9f25e-when-does-learned-constraint-selection-pay-in-security)
