Source-linked AI summary

Predicting AC Optimal Power Flows: Combining Deep Learning and Lagrangian Dual Methods

Ferdinando Fioretto, Terrence W. K. Mak, Pascal Van Hentenryck

arXiv:1909.10461v2eess.SPcs.AIcs.LGstat.ML

TL;DR

Repeated AC-OPF solves become difficult as nonlinear constraints and renewable-driven uncertainty increase, while DC approximations sacrifice fidelity. The paper proposes OPF-DNN, combining deep learning with prior operating states and Lagrangian dual constraint handling. On realistic systems, it reports prediction errors as low as 0.2% and accuracy improvements of at least two orders of magnitude over linear DC-OPF.

  • Problem

    Repeatedly solving nonlinear, nonconvex OPFs under increasing renewable-driven stochasticity is difficult, while DC approximations can sacrifice solution fidelity.

  • Method

    OPF-DNN predicts generator setpoints using prior operating states and models constrained empirical risk minimization through a Lagrangian dual framework.

  • Results

    OPF-DNN produces solutions up to several orders of magnitude more precise and faster than existing approximation methods such as the linear DC model.

  • Takeaways & Limitations

    The approach may support power-system analyses and operations involving large numbers of simulations under significant renewable penetration.

  • Takeaways & Limitations

    The learning mechanism cannot rely exclusively on hot-start information because OPF nonlinearities can cause severe output variations despite nearby loads.

Abstract

from arXiv · show

The Optimal Power Flow (OPF) problem is a fundamental building block for the optimization of electrical power systems. It is nonlinear and nonconvex and computes the generator setpoints for power and voltage, given a set of load demands. It is often needed to be solved repeatedly under various conditions, either in real-time or in large-scale studies. This need is further exacerbated by the increasing stochasticity of power systems due to renewable energy sources in front and behind the meter. To address these challenges, this paper presents a deep learning approach to the OPF. The learning model exploits the information available in the prior states of the system (which is commonly available in practical applications), as well as a dual Lagrangian method to satisfy the physical and engineering constraints present in the OPF. The proposed model is evaluated on a large collection of realistic power systems. The experimental results show that its predictions are highly accurate with average errors as low as 0.2%. Additionally, the proposed approach is shown to improve the accuracy of widely adopted OPF linear DC approximation by at least two orders of magnitude.

Introduction

OPF is a nonlinear, nonconvex problem that must be solved repeatedly as renewable-driven uncertainty increases, while common DC approximations trade computational efficiency for fidelity. OPF-DNN addresses this with constrained deep learning, prior operating states, and Lagrangian duality.

  • OPF computes minimum-cost generator dispatch satisfying power-system demands and physical and engineering constraints.
  • Generation schedules may update every 5 minutes, while renewable integration creates substantial load and generation variability.
  • DC-OPF is computationally efficient but can produce suboptimal solutions, economic losses, or constraint violations.
  • Large-scale stochastic studies often use DC-OPF and select only pertinent scenarios, reducing simulation fidelity.
  • OPF-DNN predicts generator setpoints with a DNN, incorporates OPF constraints through violation degrees and Lagrangian duality, and exploits related prior solutions.
  • OPF-DNN improves accuracy by up to two orders of magnitude and efficiency by several orders of magnitude relative to the DC model on realistic benchmarks.

Preliminaries

AC-OPF models least-cost generator dispatch over a network while enforcing electrical and engineering constraints. The DC relaxation simplifies this formulation, but a load-flow optimization is used to recover AC-feasible setpoints.

  • An OPF network is represented as a graph whose nodes are buses and edges are transmission lines.
  • The AC-OPF takes loads and the admittance matrix as inputs and returns generator active power and voltage magnitudes.
  • AC-OPF constraints enforce voltage and angle bounds, generator limits, line-flow limits, Ohm’s Law, and Kirchhoff’s Current Law.
  • The DC model ignores reactive power, fixes voltage magnitudes at nominal values, and linearizes parts of the OPF.
  • A load-flow optimization finds the closest AC-feasible solution to a DC approximation that may violate AC constraints.

OPF Learning Goals

The learning task approximates the mapping from load demands to generator setpoints, but nonlinear OPF feasibility constraints make unconstrained prediction unreliable. Validation therefore computes a nearby feasible solution.

  • The target mapping predicts each generator’s active power and voltage magnitude from active and reactive load demands.
  • Training uses observed load-demand and generator-setpoint pairs to learn an OPF prediction function.
  • The loss function measures squared errors between predicted and observed generator active power and voltage magnitudes.
  • Predicted setpoints must correspond to feasible OPF solutions for some voltage angles and reactive generator outputs.
  • Nonlinear feasibility constraints make baseline feed-forward prediction unreliable, with load-flow restoration producing substantial errors.

Capturing the OPF Constraints

OPF-DNN incorporates physical and engineering constraints by penalizing nonnegative violation degrees in a Lagrangian relaxation. These violations quantify departures from voltage, generator, line-flow, network-law, and conservation constraints.

  • The method uses a Lagrangian relaxation based on constraint violations to capture AC-OPF constraints.
  • Traditional Lagrangian relaxation uses satisfiability degrees, whereas the proposed violation-based formulation uses nonnegative violation degrees.
  • Violation degrees measure how much predictions exceed voltage, angle, generator-output, and line-flow bounds.
  • Predicted line flows are computed from predicted voltages and angles rather than emitted directly by the DNN.
  • Additional violation terms measure deviations from Ohm’s Law and Kirchhoff’s Current Law, including flow-conservation violations at buses.
  • The violation degrees capture average constraint deviations and define penalties that enrich the DNN loss to encourage constraint satisfaction.

Exploiting Existing Solutions

The method uses an existing operating point or related OPF solution as a hot-start state, enriching the learning inputs with prior system information. However, nonlinearities can cause large output changes, so hot-start information alone is insufficient.

  • Exploiting Existing Solutions: OPFs are commonly solved near an existing operating point or with solutions from related instances, providing a hot-start state.The hot-start state contains related loads, generation, and voltage information.
  • Exploiting Existing Solutions: The enriched training inputs combine the hot-start configuration with current loads, while targets describe optimal generator and voltage settings.The passages identify the input vectors as hot-start and current-load variables and the targets as optimal settings.
  • Exploiting Existing Solutions: Despite nearby loads in successive states, OPF nonlinearities can produce severe variations in operational parameters.Consequently, the learning mechanism cannot rely exclusively on the hot-start state.

Objective

The objective combines prediction accuracy with penalties for physical and engineering constraint violations. It therefore accounts both for matching optimal settings and for OPF feasibility-related constraints.

  • Objective: The prediction loss minimizes mean squared error between optimal voltage and generator settings y and predictions ˆy.The loss includes voltage and generator quantities needed for the supervised prediction objective.
  • Objective: The constraint term uses Lagrangian relaxation based on violation degrees for the OPF’s physical and engineering constraints.The constraint set is denoted by C.
  • Objective: The overall model loss is the sum of the objective loss and the constraint loss: L(x, y, ˆy) = L_o(y, ˆy) + L_c(x, ˆy).The two terms separately represent prediction error and constraint-related loss.

The Network Architecture

The OPF-DNN uses four decoder-encoder subnetworks to predict voltage and generation quantities from loads and a hot-start state. Predicted voltages and angles are then used to compute load flows.

  • The Network Architecture: The network processes current loads together with voltage, angle, and generation information from the hot-start state.The architecture receives load tensors and corresponding hot-start tensors as inputs.
  • The Network Architecture: Four fully connected ReLU subnetworks predict voltage magnitudes, phase angles, active power generations, and reactive power generations.Each basic unit follows a decoder-encoder structure and predicts one target variable.
  • The Network Architecture: Predicted voltage magnitudes and angles are used to compute the load flows.The load-flow computation also exposes loss components used in the network objective.

Lagrangian Duality

Training alternates between optimizing the DNN weights for fixed Lagrangian multipliers and updating those multipliers using constraint violations. A subgradient method implements this dual optimization, with SGD and hot-started weights used for the training step.

  • Lagrangian Duality: The OPF-DNN is defined with weights w and a loss function parameterized by Lagrangian multipliers λ.For fixed multipliers, training minimizes the parameterized loss over the network weights.
  • Lagrangian Duality: The Lagrangian dual computes a sequence of multipliers by repeatedly training the model and adjusting multipliers according to constraint violations.The updates are performed with a subgradient method.
  • Lagrangian Duality: The training step is approximated with stochastic gradient descent rather than recomputing training from scratch, using a hot start for the weights.This accelerates successive weight-optimization steps within the dual procedure.
  • Lagrangian Duality: Algorithm 1 trains on minibatches using optimizer step size α and Lagrangian step size ρ, then computes objective and constraint losses after predicting voltage and generation quantities.The training dataset is denoted by (X, Y), and the multipliers are initialized before the epoch loop.

Experiments

Experiments evaluate OPF-DNN variants on realistic benchmark networks with varied loads, constraints, hot-start states, and Lagrangian-dual weighting. The most complete model improves prediction fidelity, robustness, and cost accuracy relative to DC and other DNN baselines while retaining substantial speed advantages.

  • Datasets: Experiments use realistic mid-sized NESTA power networks with nominal loads varied by up to 20%.Many generated cases become congested and computationally harder.
  • Datasets: Hot-start datasets constrain total active-load differences to 1%, 2%, or 3%, while individual loads can vary more substantially.The experiments report both aggregate and individual-load variations.
  • Prediction Errors: Model complexity improves prediction errors: constraints, hot-start states, and Lagrangian duals successively improve voltage, angle, and flow predictions.MCS improves MC by one order of magnitude in most cases, while MDCS provides up to an additional order-of-magnitude improvement.
  • Prediction Errors: Across varying load demands, models exploiting problem structure generalize better, although increased loads can create infeasible congested scenarios.Figures examine active power, voltage magnitude, voltage angles, and power-flow errors on a log-10 scale.
  • Load Flow Analysis: OPF-DNN is up to two orders of magnitude more precise than the DC model for load-flow predictions relative to AC-OPF solutions.The comparison uses average L1 distances for active power and voltage magnitude.
  • Solution Quality and Runtime: OPF-DNN produces dispatch costs at least one order of magnitude closer to AC-OPF than DC while running several orders of magnitude faster.The evaluation compares DNN variants, DC approximation, and LFS against optimal AC-OPF solutions.
  • Hot-Start Robustness Analysis: DNN-OPF is generally insensitive to hot-start training ranges differing from the input state by 1%, 2%, or 3%.The authors associate this robustness with possible use in networks with high renewable penetration.

Related Work

Prior OPF prediction work largely targets active constraints in linear DC models, whereas this paper predicts optimal generator and voltage setpoints directly in AC-OPF settings.

  • DNN research in energy systems has mainly predicted renewable-resource factors, generation costs, or security-related operating conditions.
  • Existing OPF-prediction work learns active constraints for the linear DC model and then searches for solutions satisfying those constraints.
  • This active-constraint strategy becomes substantially less efficient as the number of constraints grows and applies only to the DC approximation.
  • The proposed work predicts optimal generator setpoints and bus voltages directly for the nonlinear AC-OPF problem.
  • OPF-DNN exploits OPF constraints during training and reports instant convergence with high accuracy across a wider class of applications.

Conclusions

The paper concludes that OPF-DNN combines constraint-aware learning with prior system states to approximate AC-OPF solutions accurately and efficiently. It reports improvements over established approximation methods while noting scalability work remains for very large networks.

  • OPF-DNN predicts generator setpoints using a Lagrangian dual method that exploits power-system constraints and a related hot-start state.
  • Several orders of magnitude more precise and faster solutions than existing approximations, including the linear DC model, are reported.
  • The approach is positioned for expansion planning and security assessment studies requiring many multi-year simulations based on linear DC models.
  • Current work aims to test the approach on very large networks whose datasets exceed available GPU memory.

Appendix

The appendix describes the network notation, baseline and constraint-aware DNN losses, and architectures that incorporate hot-start information and Lagrangian-weight estimation.

  • Notation: The power system is represented by graph pN, Eq, with n buses, e directed transmission lines, l load buses, and g generator buses.
  • Baseline model: The baseline model minimizes squared prediction errors for voltage magnitudes and active power generations.
  • Baseline model: The baseline architecture uses fully connected layers whose dimensions and activation functions are summarized in a table and illustrated in Figure 4.
  • Constraint-aware models: Model MC adds OPF constraint penalties based on violation degrees to the prediction loss, with all constraint weights set to 1.
  • Hot-start model: Model MCS extends MC by providing the previous power-system state to each output subnetwork alongside features derived from the load input.
  • Lagrangian weighting: Models MLCS and OPF-DNN estimate Lagrangian weights through trainable multipliers or an iterative Lagrangian dual scheme, respectively.
Loading 1909.10461v2…