NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unit Commitment using Nearest Neighbor as a Short-Term Proxy

Gal Dalal, Elad Gilboa, Shie Mannor, Louis Wehenkel

Introduction

In modern power systems, Unit Commitment (UC) is a critical operational task: determining which generating units to activate to meet demand at minimum cost while adhering to complex physical constraints. Mathematically, this is framed as a Mixed-Integer Linear Program (MILP), a class of problems that is computationally intensive and difficult to solve in real-time for large-scale grids.

While daily operations manage UC for 24-hour windows, long-term infrastructure and maintenance planning require simulating thousands of "what-if" scenarios involving volatile renewable energy and fluctuating demand. Solving a full MILP for every hour across these scenarios is often computationally prohibitive. This paper introduces UCNN (Unit Commitment Nearest Neighbor), a machine learning-based proxy designed to replace expensive simulations with a high-speed "lookup" approach, achieving a 200x to 1000x speedup with minimal loss in accuracy.

Methodology

UCNN treats the UC problem as a supervised learning task, operating in two distinct phases to bypass the physics-heavy calculations of traditional solvers.

UCNN Methodology Flowchart: Phase I involves generating a database of solved MILP problems, while Phase II performs rapid nearest-neighbor retrieval for new scenarios.

Phase I: Training Set Generation

A database is constructed by pre-solving thousands of UC problems using standard MILP solvers. Each entry maps specific inputs—24-hour demand forecasts, wind generation forecasts, and grid topology—to their optimal UC schedules and operational costs.

Phase II: Prediction and Weighted Distance

When evaluating a new scenario, UCNN searches the database for the "Nearest Neighbor" (the most similar pre-solved case). A key innovation is the use of a weighted distance metric. The authors weight grid topology 100 times more heavily than demand or wind, reflecting the reality that transmission line status impacts system behavior far more drastically than minor weather variations.

Experimental Evaluation

The algorithm was tested on updated versions of the IEEE-RTS79 and IEEE-RTS96 benchmarks, modified with modern generator parameters such as ramp rates and start-up costs. To ensure realistic uncertainty, wind and load profiles were derived from historical US data. The training set comprised 14,000 scenarios, with a disjoint set of 1,000 scenarios used for testing.

Results and Discussion

The UCNN approach demonstrated significant performance gains across several metrics:

  • Computational Efficiency: On the RTS96 system, traditional MILP solvers averaged 81 seconds per scenario. UCNN provided solutions in just 0.31 seconds.
  • High Fidelity: The average relative error in operational cost was a mere 3.6%. As shown in the cost scatter analysis, there is a strong linear correlation (0.96) between the UCNN predictions and exact MILP solutions.
  • Scalability: While larger grids require larger training sets, the runtime advantage of UCNN over traditional solvers actually increases as the system size grows.
Cost Correlation: A scatter plot comparing UCNN predicted costs against exact MILP solutions for the IEEE-RTS96 system, demonstrating high predictive accuracy.

Beyond cost estimation, UCNN proved effective as a reliability proxy, accurately predicting grid metrics like the probability of load shedding during maintenance outages—a task that typically slows traditional solvers significantly due to N-1 security constraints.

Conclusion and Future Directions

UCNN offers a tractable path for long-term grid planning by trading a small margin of accuracy for massive gains in speed. While the "cold start" cost of generating the initial training set is high (taking roughly two days for the RTS96 system), the subsequent speedup enables planners to explore a much wider range of scenarios than previously possible.

Future research may focus on metric learning to automatically optimize distance weights and exploring "warm-starting" techniques, where UCNN provides an initial guess to accelerate exact MILP solvers rather than replacing them entirely.

Summary updated

BibTeX
@misc{dalal2016unit,
  author = {Gal Dalal and Elad Gilboa and Shie Mannor and Louis Wehenkel},
  title = {{Unit Commitment using Nearest Neighbor as a Short-Term Proxy}},
  year = {2016},
  eprint = {1611.10215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.10215},
}
Figure