Graphical Models and Belief Propagation-hierarchy for Optimal Physics-Constrained Network Flows

In this manuscript we review new ideas and first results on application of the Graphical Models approach, originated from Statistical Physics, Information Theory, Computer Science and Machine Learning, to optimization problems of network flow type with additional constraints related to the physics of the flow. We illustrate the general concepts on a number of enabling examples from power system and natural gas transmission (continental scale) and distribution (district scale) systems. 1.1 Introductory remarks In this chapter we discuss optimization problems which appears naturally in the classical settings describing flows over networks constrained by the physical nature Michael Chertkov Theoretical Division, T-4 & CNLS, Los Alamos National Laboratory Los Alamos, NM 87545, USA and Energy System Center, Skoltech, Moscow, 143026, Russia, e-mail: chertkov@lanl. gov Sidhant Misra Theoretical Division, T-5, Los Alamos National Laboratory Los Alamos, NM 87545, USA, e-mail: sidhant@lanl.gov Marc Vuffray Theoretical Division, T-4, Los Alamos National Laboratory Los Alamos, NM 87545, USA, e-mail: sidhant@lanl.gov Krishnamurthy Dvijotham Pacific Northwest National Laboratory, PO Box 999, Richland, WA 99352, USA e-mail: krishnamurthy.dvijotham@pnnl.gov Pascal Van Hentenryck University of Michigan, Department of Industrial & Operations Engineering Ann Arbor, MI 48109, USA, e-mail: pvanhent@umich.edu 1 ar X iv :1 70 2. 01 89 0v 1 [ cs .S Y ] 7 F eb 2 01 7 2 M. Chertkov, S. Misra, M. Vuffray, D. Krishnamurthy, and P. Van Hentenryck of the flows which appear in the context of electric power systems, see e.g. [27, 44], and natural gas application, see e.g. [13] and references there in. Other examples of physical flows where similar optimization problem arise include pipe-flow systems, such as district heating [75, 1] and water [54], as well as traffic systems [40]. We aim to show that the network flow optimization problem can be stated naturally in terms of the so-called Graphical Models (GM). In general, GMs for optimization and inference are wide spread in statistical disciplines such as Applied Probability, Machine Learning and Artificial Intelligence [53, 29, 16, 12, 32, 50], Information Theory [55] and Statistical Physics [47]. Main benefit of adopting GM methodology to the physics-constrained network flows is in modularity and flexibility of the approach – any new constraints, set of new variables, and any modification of the optimization objective can be incorporated in the GM formulation with an ease. Besides, if all (or at least majority of) constraints and modifications are factorized, i.e. can be stated in terms of a small subset of variables, underlying GM optimization or GM statistical inference problems can be solved exactly or approximately with the help of an emerging set of techniques, algorithms and computational approaches coined collectively Belief Propagation (BP), see e.g. an important original paper [74] and recent reviews [47, 55, 66]. It is also important to emphasize that an additional benefit of the GM formulation is in its principal readiness for generalization. Even though we limit our discussion to application of the GM and BP framework to deterministic optimizations, many probabilistic and/or mixed generalizations (largely not discussed in this paper) fit very naturally in this universal framework as well. We will focus on optimization problems associated with Physics-Constrained Newtork Flow (PCNF) problems. Structure of the networks will obviously be inherited in the GM formulation, however indirectly through graphand variabletransformations and modifications. Specifically, next Section 1.2 is devoted solely to stating a number of exemplary energy system formulations in GM terms. Thus, in Section 1.2.1 and Section 1.2.2 we consider dissipation optimal and respectively general physics-constrained network flow problems. In particular, Section 1.2.2 includes discussion of power flow problems in both power-voltage, Section 1.2.2.1, and current-voltage, Section 1.2.2.2, formats, as well as discussion of the gas flow formulation in Section 1.2.2.3 and general k-component physics-constrained network flow problem in Section 1.2.2.4. Section 1.2.3 describes problems of the next level of complexity – these including optimization over resources. In particular, general optimal physics-controlled network flow problem is discussed in Section 1.2.3.1 and more specific cases of optimal flows, involving optimal power flow (in both power-flow and current-voltage formulations) and gas flows are discussed in Sections 1.2.3.2,1.2.3.3,1.2.2.3, respectively. Section 1.2.4 introduces a number of feasibility problems, all stated as special kinds of optimizations. Here we discuss the so-called instanton, Section 1.2.4.1, containment Section 1.2.4.2, and state estimation, Section 1.2.4.3, formulation. The long introductory section concludes with a discussion in Section 1.2.5 of an exemplary (and even more) complex optimization involving split of resources between participants/aggregators. 1 Graphical Models for Optimal Flows 3 In Section 1.3 we describe how any of the aforementioned PCNF and optimal PCNF problems can be re-stated in the universal Graphical Model format. Then, in Section 1.4, we take advantage of the factorized form of the PCNF GM and illustrate how BP methodology can be used to solve the optimization problems exactly and/or approximately. Specifically, in Section 1.4.1 we restate the optimization (Maximum Likelihood) GM problem as a Linear Programming (LP) in the space of beliefs (proxies for probabilities). The resulting LP is generally difficult as working with all variables in a combination. We take advantage of the GM factorization and introduce in Section 1.4.2 the so-called Linear Programming Belief Propagation (LP-BP) relaxation, providing a provable lower bound for the optimal. Finally, in Section 1.4.3 we construct a tractable relaxation of LP-BP based on an interval partitioning of the underlying space. Section 1.5 discuss hierarchies which allow to generalize, and thus improve LPBP. The so-called LP-BP hierarchies, related to earlier papers on the subject [65, 30, 63] are discussed in Section 1.5.1. Then, relation between the LP-BP hierarchies and classic LP-based Sherali-Adams [59] and Semi-Definite-Programming based Lasserre hierarchies [41, 36, 52, 37] are discussed in Section 1.5.2. Section 1.6 discuss the special case of a GM defined over a tree (graph without loops). In this case LP-BP is exac, equivalent to the so-called Dynamic Programming approach, and as such it provides a distributed alternative to the global optimization through a sequence of graph-element-local optimizations. However, even in the tree case the exact LP-BP and/or DP are not tractable for GM stated in terms of physical variables, such as flows, voltages and/or pressures, drawn from a continuous set. Following, [18] we discuss here how the problem can be resolved with a proper interval-partitioning (discretization). We conclude the manuscript presenting summary and discussing path forward in Section 1.7. 1.2 Problems of Interest: Formulations In this Section we formulate a number of physics-constrained network flow problems which we will then attempt to analyze and solve with the help of Graphical Model (GM)/Belief Propagation (BP) approaches/techniques in the following Sections. 1.2.1 Dissipation-Optimal Network Flow We start introducing/discussing Network Flows constrained by a minimum dissipation principle, i.e. one which can be expressed as an unconstrained optimization/minimization of an energy function (potential). 4 M. Chertkov, S. Misra, M. Vuffray, D. Krishnamurthy, and P. Van Hentenryck Consider a static flow of a commodity over an undirected graph, G = (V ,E ) described through the following network flow equations i ∈ V : qi = ∑ j:(i, j)∈E φi j, (1.1) where qi stand for injection, qi > 0, or consumption, qi < 0, of the flow at the node i and φi j =−φ ji stands for the value of the flow through the directed edge (i, j) – in the direction from i to j 1. We consider a balanced network, ∑i∈V qi = 0. We constraint the flow requiring that the minimum dissipation principle is obeyed min φ ∑ {i, j}∈E Ei j(φi j) ∣∣∣∣ Eq. (1.1) , (1.2) where φ . = (φi j = −φ ji|{i, j} ∈ E ), and Ei j(x) are local (energy) functions of their arguments for all {i, j} ∈ E . The local energy functions Ei j(x) are required to be convex at least on a restricted domain. We call the sum of local energy functions E(φ) = ∑{i, j}∈E Ei j(φi j) the global energy function or simply the energy function. Versions of this problem appear in the context of the feasibility analysis of the dissipative network flows, that is flows whose redistribution over the network is constrained by potentials, e.g. voltages or pressures in the context of resistive electric networks and gas flow networks, respectively [22, 48, 64]. Note, that the formulation (1.2) can also be supplemented by additional flow or potential constraints. Requiring Karush-Kuhn-Tucker (KKT) stationary point conditions on the optimization problem stated in Eq. (1.2) leads to the following set of equations ∀{i, j} ∈ E : E ′ i j(φi j) = λi−λ j, (1.3) where λi is a Lagrangian multiplier corresponding to the i’s equation (1.1). The problem becomes fully defined by the pair of Eqs. (1.1,1.3), which can also be restated solely in terms of the λ -variables i ∈ V : qi = ∑ j:{i, j}∈E ( E ′ i j )−1 (λi−λ j). (1.4) 1.2.2 General Physics-Constrained Network Flows We call “unconstrained” a network flow for which only conservation of flow(s), described by Eq. (1.1), is enforced. Contrariwise we call “Physics-constrained” a 1 In the following we will use notation {i, j} for the undirected graph and (i, j) for the respective directed graph. When the meaning is clear we slightly abuse notations denoting by E both the set of undirected and directed edges. 1 Graphical Models for Optimal Flows 5 network flow t

[1]  Amir Globerson,et al.  Tightness Results for Local Consistency Relaxations in Continuous MRFs , 2014, UAI.

[2]  Steven H. Low,et al.  Convex Relaxation of Optimal Power Flow—Part I: Formulations and Equivalence , 2014, IEEE Transactions on Control of Network Systems.

[3]  Nir Friedman,et al.  Probabilistic Graphical Models , 2009, Data-Driven Computational Neuroscience.

[4]  Michael Chertkov,et al.  Linear programming based detectors for two-dimensional intersymbol interference channels , 2011, 2011 IEEE International Symposium on Information Theory Proceedings.

[5]  Martin J. Wainwright,et al.  Stochastic processes on graphs with cycles: geometric and variational approaches , 2002 .

[6]  Michael Chertkov,et al.  Optimal Power Flow with Weighted chance constraints and general policies for generation control , 2015, 2015 54th IEEE Conference on Decision and Control (CDC).

[7]  J. Lavaei,et al.  Convex relaxation for optimal power flow problem: Mesh networks , 2013, 2013 Asilomar Conference on Signals, Systems and Computers.

[8]  Francis Bach,et al.  Submodular functions: from discrete to continuous domains , 2015, Mathematical Programming.

[9]  R. Larson,et al.  Optimization of natural-gas pipeline systems via dynamic programming , 1968 .

[10]  Michael Chertkov,et al.  Convexity of Energy-Like Functions: Theoretical Results and Applications to Power System Operations , 2015, 1501.04052.

[11]  Dag Haugland,et al.  Optimization methods for pipeline transportation of natural gas with variable specific gravity and compressibility , 2013 .

[12]  Michael Chertkov,et al.  Improved linear programming decoding using frustrated cycles , 2013, 2013 IEEE International Symposium on Information Theory.

[13]  Daniel K. Molzahn,et al.  Examining the limits of the application of semidefinite programming to power flow problems , 2011, 2011 49th Annual Allerton Conference on Communication, Control, and Computing (Allerton).

[14]  Kevin P. Murphy,et al.  Machine learning - a probabilistic perspective , 2012, Adaptive computation and machine learning series.

[15]  Scott Backhaus,et al.  Efficient algorithm for locating and sizing series compensation devices in large power transmission grids: I. Model implementation , 2014 .

[16]  Michael Chertkov,et al.  Coordinated Scheduling for Interdependent Electric Power and Natural Gas Infrastructures , 2017 .

[17]  Felix F. Wu,et al.  Network Reconfiguration in Distribution Systems for Loss Reduction and Load Balancing , 1989, IEEE Power Engineering Review.

[18]  Mulukutla S. Sarma,et al.  Power System Analysis and Design , 1993 .

[19]  Tommi S. Jaakkola,et al.  Approximate inference in graphical models using lp relaxations , 2010 .

[20]  Lakhmi C. Jain,et al.  Introduction to Bayesian Networks , 2008 .

[21]  Suming Wu,et al.  Model relaxations for the fuel cost minimization of steady-state gas pipeline networks , 2000 .

[22]  William T. Freeman,et al.  Constructing free-energy approximations and generalized belief propagation algorithms , 2005, IEEE Transactions on Information Theory.

[23]  Scott Backhaus,et al.  Efficient algorithm for locating and sizing series compensation devices in large power transmission grids: II. Solutions and applications , 2014 .

[24]  Tomás Werner,et al.  A Linear Programming Approach to Max-Sum Problem: A Review , 2007, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[25]  Pablo A. Parrilo,et al.  Semidefinite programming relaxations for semialgebraic problems , 2003, Math. Program..

[26]  Daniel Bienstock,et al.  LP approximations to mixed-integer polynomial optimization problems , 2015, ArXiv.

[27]  D. Bienstock,et al.  Temperature-based instanton analysis: Identifying vulnerability in transmission networks , 2015, 2015 IEEE Eindhoven PowerTech.

[28]  Rüdiger L. Urbanke,et al.  Modern Coding Theory , 2008 .

[29]  Krishnamurthy Dvijotham,et al.  Construction of power flow feasibility sets , 2015, ArXiv.

[30]  S. Low,et al.  Zero Duality Gap in Optimal Power Flow Problem , 2012, IEEE Transactions on Power Systems.

[31]  Jason K. Johnson,et al.  Convex relaxation methods for graphical models: Lagrangian and maximum entropy approaches , 2008 .

[32]  Tomás Werner,et al.  High-arity interactions, polyhedral relaxations, and cutting plane algorithm for soft constraint optimisation (MAP-MRF) , 2008, 2008 IEEE Conference on Computer Vision and Pattern Recognition.

[33]  Hanif D. Sherali,et al.  A Hierarchy of Relaxations Between the Continuous and Convex Hull Representations for Zero-One Programming Problems , 1990, SIAM J. Discret. Math..

[34]  S. Stenholm Information, Physics and Computation, by Marc Mézard and Andrea Montanari , 2010 .

[35]  Ian A. Hiskens,et al.  Moment-based relaxation of the optimal power flow problem , 2013, 2014 Power Systems Computation Conference.

[36]  Dmitry M. Malioutov,et al.  Walk-Sums and Belief Propagation in Gaussian Graphical Models , 2006, J. Mach. Learn. Res..

[37]  Y. Smeers,et al.  The Gas Transmission Problem Solved by an Extension of the Simplex Algorithm , 2000 .

[38]  Michael Chertkov,et al.  Chance-Constrained Optimal Power Flow: Risk-Aware Network Control under Uncertainty , 2012, SIAM Rev..

[39]  Michael Chertkov,et al.  Predicting Failures in Power Grids: The Case of Static Overloads , 2010, IEEE Transactions on Smart Grid.

[40]  Tommi S. Jaakkola,et al.  New Outer Bounds on the Marginal Polytope , 2007, NIPS.

[41]  T. Rauschenbach,et al.  Modeling, Control and Optimization of Water Systems , 2016 .

[42]  David Sontag,et al.  Efficiently Searching for Frustrated Cycles in MAP Inference , 2012, UAI.

[43]  Tommi S. Jaakkola,et al.  Tightening LP Relaxations for MAP using Message Passing , 2008, UAI.

[44]  Pascal Van Hentenryck,et al.  Graphical models for optimal power flow , 2016, Constraints.

[45]  Andrzej J. Osiadacz Osiadacz,et al.  Simulation and Analysis of Gas Networks , 1987 .

[46]  Vladimir Kolmogorov,et al.  The Power of Linear Programming for General-Valued CSPs , 2013, SIAM J. Comput..

[47]  Alexander Schrijver,et al.  Cones of Matrices and Set-Functions and 0-1 Optimization , 1991, SIAM J. Optim..

[48]  Michael I. Jordan,et al.  Graphical Models, Exponential Families, and Variational Inference , 2008, Found. Trends Mach. Learn..

[49]  Jean B. Lasserre,et al.  Global Optimization with Polynomials and the Problem of Moments , 2000, SIAM J. Optim..

[50]  R. Jabr Exploiting Sparsity in SDP Relaxations of the OPF Problem , 2012, IEEE Transactions on Power Systems.

[51]  Judea Pearl,et al.  Probabilistic reasoning in intelligent systems , 1988 .

[52]  Tomás Werner,et al.  Revisiting the Linear Programming Relaxation Approach to Gibbs Energy Minimization and Weighted Constraint Satisfaction , 2010, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[53]  Michael Chertkov,et al.  Optimal Placement and Sizing of FACTS Devices to Delay Transmission Expansion , 2016, ArXiv.

[54]  Andrej Risteski,et al.  How to calculate partition functions using convex programming hierarchies: provable bounds for variational methods , 2016, COLT.

[55]  Devavrat Shah,et al.  Belief Propagation for Min-Cost Network Flow: Convergence and Correctness , 2010, Oper. Res..

[56]  Michael Chertkov,et al.  A differential analysis of the power flow equations , 2015, 2015 54th IEEE Conference on Decision and Control (CDC).

[57]  Michael Chertkov,et al.  Exact and efficient algorithm to discover extreme stochastic events in wind generation over transmission Power Grids , 2011, IEEE Conference on Decision and Control and European Control Conference.

[58]  Michael Chertkov,et al.  Solving the Power Flow Equations: A Monotone Operator Approach , 2015, ArXiv.

[59]  Christoph H. Lampert,et al.  1 The Power of LP Relaxation for MAP Inference , 2013 .

[60]  Steven H. Low,et al.  Convex Relaxation of Optimal Power Flow—Part II: Exactness , 2014, IEEE Transactions on Control of Network Systems.

[61]  Michael Chertkov,et al.  Maximum Throughput Problem in Dissipative Flow Networks with Application to Natural Gas Systems , 2015, 1504.02370.

[62]  Michael I. Jordan,et al.  Probabilistic Networks and Expert Systems , 1999 .

[63]  Michael Chertkov,et al.  Natural Gas Flow Solutions with Guarantees: A Monotone Operator Theory Approach , 2015, ArXiv.

[64]  Yurii Nesterov,et al.  Design and Operations of Gas Transmission Networks , 2012, Oper. Res..

[65]  K. R. Padiyar,et al.  Power system dynamics : stability and control , 1996 .

[66]  Jinwoo Shin,et al.  Minimum Weight Perfect Matching via Blossom Belief Propagation , 2015, NIPS.

[67]  Michael Chertkov,et al.  Monotonicity of dissipative flow networks renders robust maximum profit problem tractable: General analysis and application to natural gas flows , 2015, 2015 54th IEEE Conference on Decision and Control (CDC).

[68]  Daniel Bienstock,et al.  Electrical transmission system cascades and vulnerability - an operations research viewpoint , 2015, MOS-SIAM Series on Optimization.

[69]  J. Lasserre Moments, Positive Polynomials And Their Applications , 2009 .