Equivalent relaxations of optimal power flow
Subhonmesh Bose, Steven H. Low, Thanchanok Teeraratkul, Babak Hassibi
I Introduction
The optimal power flow (OPF) problem seeks an operating point of a power network that minimizes a certain cost, e.g., generation cost, transmission losses, etc. It is a fundamental problem as it underlies many applications such as unit commitment, economic dispatch, state estimation, volt/var control, and demand response. There has been a great deal of research since Carpentier’s first formulation in 1962 and an early solution by Dommel and Tinney ; recent surveys can be found in, e.g., . OPF is generally nonconvex and NP-hard. A large number of optimization algorithms and relaxations have been proposed, the most popular of which is linearization (called DC OPF) ; See also for a more accurate linear approximation. An important observation was made in that OPF can be formulated as a quadratically constrained quadratic program and therefore can be approximated by a semidefinite program (SDP). Instead of solving OPF directly, the authors in propose to solve its convex Lagrangian dual problem. Sufficient conditions have been studied by many authors under which an optimal solution for the non-convex problem can be derived from an optimal solution of its SDP relaxation; e.g., for radial networks and in for resistive networks. These papers all use the standard bus injection model where the Kirchhoff’s laws are expressed in terms of the complex nodal voltages in rectangular coordinates.
Branch flow models on the other hand formulate OPF in terms of branch power and current flows in addition to nodal voltages, e.g., . They have been mainly used for modeling radial distribution networks. A branch flow model has been proposed in to study OPF for both radial and mesh networks and a relaxation based on second-order cone program (SOCP) is developed. Sufficient conditions are obtained in under which the SOCP relaxation is exact for radial networks.
I-B Summary
Since the OPF problem in the bus injection model is a quadratically constrained quadratic program it is equivalent to a rank-constrained SDP . This formulation naturally leads to an SDP relaxation that removes the rank constraint and solves for a full positive semidefinite matrix. If the rank condition is satisfied at an optimal point, the relaxation is said to be exact and an optimal solution of OPF can be recovered through the spectral decomposition of the positive semidefinite matrix. Even though SDP is polynomial time solvable it is nonetheless impractical to compute for large power networks. Practical networks, however, are sparse. In this paper we develop two equivalent formulations of OPF using partial matrices that involve much fewer variables than the full SDP.
The key idea is to characterize classes of partial matrices that are easy to compute and, when the relaxations are exact, are completable to full positive semidefinite matrices of rank 1 from which a solution of OPF can be recovered through spectral decomposition. One of these equivalent problems leads to an SDP relaxation based on chordal extension of the network graph and the other leads to an SOCP relaxation . In this work, we prove equivalence relations among these problems and their relaxations. Our results imply that, for radial networks, all three relaxations are equivalent and we should always solve the SOCP relaxation. For mesh networks there is a tradeoff between computational effort and accuracy (in terms of exactness of relaxation) in deciding between solving SOCP relaxation or the other two relaxations. Between the chordal relaxation and the full SDP, if all the maximal cliques of a chordal extension of the network graph have been pre-computed offline then solving the chordal relaxation is always better because it has the same accuracy as the full SDP but typically involves far fewer variables and is faster to compute. This is explained in Section II. Chordal relaxation has been suggested in for solving OPF, and SOCP relaxation in the bus injection model has also been studied in . Here we provide a framework that unifies and contrasts these approaches.
In Section III we present the branch flow model of for OPF and the corresponding SOCP relaxation developed in . In Section IV we prove the equivalence of the branch flow model and the bus injection model by exhibiting a bijection between these two models and their relaxations. Indeed the relations among the various problems in this paper, both in the bus injection model and the branch flow model, are established through relations among their feasible sets.
It is important that we utilize both the bus injection and the branch flow models. Even though they are equivalent, some relaxations are much easier to formulate and some sufficient conditions for exact relaxation are much easier to prove in one model than the other. For instance the semidefinite relaxation of power flows has a much cleaner formulation in the bus injection model. The branch flow model especially for radial networks has a convenient recursive structure that not only allows a more efficient computation of power flows e.g. , but also plays a crucial role in proving the sufficient conditions for exact relaxation in . Since the variables in the branch flow model correspond directly to physical quantities such as branch power flows and injections it is sometimes more convenient in applications.
In Section V, we illustrate the relations among the various relaxations and OPF through simulations. First, we visualize the feasible sets of a 3-bus example in . Then we compare the running times and accuracies of these relaxations on IEEE benchmark systems . We conclude the paper in Section VI.
I-C Notations
II Bus injection model and conic relaxations
In this section we formulate OPF in the bus injection model and describe three equivalent problems. These problems lead naturally to semidefinite relaxation, chordal relaxation, and second-order cone relaxation of OPF. We prove equivalence relations among these problems and their exact relaxations.
Consider a power network modeled by a connected undirected graph where each node in represents a bus and each edge in represents a line. For each edge let be its admittance . A bus can have a generator, a load, both or neither. Typically the loads are specified and the generations are variables to be determined. Let be the net complex power injection (generation minus load) at bus . Also, let be the complex voltage at bus and denote its magnitude. Bus 1 is the slack bus with a fixed magnitude (normalized to 1). The bus injection model is defined by the following power flow equations that describe the Kirchhoff’s law The current flowing from bus to bus is .:
The power injections at all buses satisfy
where and are known limits on the net injection at bus . It is often assumed that the slack bus (node 1) has a generator and there is no limit of ; in this case . We can eliminate the variables from the OPF formulation by combining (1)–(2) into
Then OPF in the bus injection model can be formulated in terms of just the voltage vector . All voltage magnitudes are constrained:
where and are known lower and upper voltage limits. Typically . These constraints define the feasible set of the optimal power flow problem in the bus injection model:
Let the cost function be . Typical costs include the total cost of generating real power at all buses or line loss over the network. All these costs can be expressed as functions of . Thus, we obtain the following optimization problem. Optimal power flow problem :
The OPF formulation usually includes additional constraints such as thermal or stability limits on power or current flows on the lines, or security constraints; see surveys in . Our results generalize to OPF with some of these constraints, e.g., line limits . Our model can also include a shunt element at each bus. We omit these refinements for ease of presentation.
II-B SDP relaxation: 𝒫1\mathcal{P}_{1} and ℛ1\mathcal{R}_{1}
Note that (3) is linear in the variables for and for . This motivates the definition of a -partial matrix. Define the index set :
A -partial matrix is a collection of complex numbers indexed by the set , i.e., is defined iff or . This is illustrated in Figure 2. For graph , we have nodes and as shown in Figure 2(a) as a partially filled matrix. For graph in Figure 1(b), is represented in Figure 2(b). If is a complete graph, i.e., every pair of nodes share an edge, then is an matrix.
The relations in (3)–(4) can be rewritten in terms of as:
We assume the cost function in OPF depends on only through the -partial matrix . For instance, if the objective is to minimize the total real power loss in the network then
If the objective is to minimize a weighted sum of real power generation at various nodes then
where is the given real power demand at bus . Henceforth we refer to the cost function as .
is an SDP and can be solved in polynomial time using interior-point algorithms . Let be an optimal solution of . If is rank-1 then also solves optimally. We say the relaxation is exact with respect to if there exists an optimal solution of that satisfies the rank constraint in and hence optimal for .
In this paper we define a relaxation to be exact as long as one of its optimal solutions satisfies the constraints of the original problem, even though a relaxation may have multiple optimal solutions with possibly different ranks. The exactness of in general does not guarantee that we can compute efficiently a rank-1 optimal if non-rank-1 optimal solutions also exist. Many sufficient conditions for exact relaxation in the recent literature, however, do guarantee that every optimal solution of the relaxation is optimal for the original problem, e.g., or they lead to a polynomial time algorithm to construct an optimal solution of from any optimal solution of the relaxation, e.g., .
II-C Chordal relaxation: 𝒫ch\mathcal{P}_{ch} and ℛch\mathcal{R}_{ch}
To define the next relaxation we need to extend the definitions of Hermitian, psd, and rank-1 for matrices to partial matrices:
The complex conjugate transpose of a -partial matrix is the -partial matrix that satisfies
We say is Hermitian if .
A matrix is psd if and only if all its principal submatrices (including itself) are psd. We extend the definition of psd to -partial matrices using this property. Informally a -partial matrix is said to be psd if, when viewed as a partially filled matrix, all its fully-specified principal submatrices are psd. This notion can be formalized as follows. A clique is a complete subgraph of a given graph. A clique on nodes is referred to as a -clique. For the graph in Figure 1(a), the cliques are the edges. For the graph in Figure 1(b), the cliques consist of the edges and the triangles and . A -clique in graph on nodes fully specifies the submatrix For any graph , a partial matrix , and a subgraph of , the partial matrix is a submatrix of corresponding to the entries of . If subgraph is a clique, then is a matrix.:
We say a -partial matrix is positive semidefinite (psd), written as , if and only if for all cliques in graph .
A matrix has rank one if has exactly one linearly independent row (or column). We say a -partial matrix has rank one, written as , if and only if
If is a complete graph then specifies an matrix and the definitions of psd and rank-1 for the -partial matrix coincide with the regular definitions.
A cycle on nodes in graph is a -tuple such that , , , are edges in . A cycle in is minimal if no strict subset of defines a cycle in . In graph in Figure 1(a) the 4-tuple defines a minimal cycle. In graph in Figure 1(b) however the same 4-tuple is a cycle but not minimal. The minimal cycles in are and . A graph is said to be chordal if all its minimal cycles have at most 3 nodes. In Figure 2, is a chordal graph while is not. A chordal extension of a graph on nodes is a chordal graph on the same nodes that contains as a subgraph. Note that all graphs have a chordal extension; the complete graph on the same set of vertices is a trivial chordal extension of a graph. In Figure 2, is a chordal extension of .
Let be any chordal extension of . Define the following optimization problem over a Hermitian -partial matrix , where the constraints (7a)-(7b) are imposed only on the index set , i.e., in terms of the -partial submatrix of the -partial matrix . Problem :
Let be the rank-relaxation of . Problem :
Let be an optimal solution of . If is rank-1 then also solves optimally. Again, we say is exact with respect to if there exists an optimal solution of that has rank 1 and hence optimal for ; see Remark 2 for more details.
To illustrate, consider graph in Figure 1(a) and its chordal extension in Figure 1(b). The cliques in are , , , , , , and . Thus the constraint in imposes positive semidefiniteness on for each clique in the above list. Indeed imposing for maximal cliques of is sufficient, where a maximal clique of a graph is a clique that is not a subgraph of another clique in the same graph. This is because for a maximal clique implies for any clique that is a subgraph of . The maximal cliques in graph are , and and thus is equivalent to for all maximal cliques listed above. Even though listing all maximal cliques of a general graph is NP-complete it can be done efficiently for a chordal graph. This is because a graph is chordal if and only if it has a perfect elimination ordering and computing this ordering takes linear time in the number of nodes and edges . Given a perfect elimination ordering all maximal cliques can be enumerated and constructed efficiently . Moreover the computation depends only on network topology, not on operational data, and therefore can be done offline. For more details on chordal extension see . A special case of chordal relaxation is studied in where the underlying chordal extension extends every basis cycle of the network graph into a clique.
II-D SOCP relaxation: 𝒫2\mathcal{P}_{2} and ℛ2\mathcal{R}_{2}
We say a -partial matrix satisfies the cycle condition if, over every cycle in , we have
Consider any spanning tree of . A “basis cycle” in is a cycle that has all but one of its edges common with the spanning tree. If (8) holds over all basis cycles in with respect to a spanning tree then (8) holds over all cycles of .
For any edge in , is the principal submatrix of defined by the 2-clique . Define the following optimization problem over Hermitian -partial matrices . Problem :
Both the cycle condition (8) and the rank-1 condition are nonconvex constraints. Relaxing them, we get the following second-order cone program. Problem :
For and Hermitian we have
The right-hand side of (9) is a second-order cone constraint and hence can be solved as an SOCP. If an optimal solution of is rank-1 and also satisfies the cycle condition then solves optimally and we say that relaxation is exact with respect to .
II-E Equivalent and exact relaxations
So far, we have defined the problems , and and obtained their convex relaxations , and respectively. We now characterize the relations among these problems.
Let be the optimal cost of OPF. Let , , be the optimal cost of , , respectively and let , , be the optimal cost of their relaxations , , respectively.
Let denote any chordal extension of . Then
. If is acyclic, then .
is exact iff is exact. and are exact if is exact. If is acyclic, then is exact iff is exact.
We make three remarks. First, part (a) says that the optimal cost of , and are the same as that of OPF. Our proof claims a stronger result: the underlying -partial matrices in these problems are the same. Informally the feasible sets of these problems, and hence the problems themselves, are equivalent and one can construct a solution of OPF from a solution of any of these problems.
Third, part (c) says that solving is the same as solving and, in the case where is acyclic (a tree, since is assumed to be connected), is the same as solving . and are SDPs while is an SOCP. Though they can all be solved in polynomial time , SOCP in general requires a much smaller computational effort than SDP. Part (b) suggests that, when is a tree, we should always solve . When has cycles then there is a tradeoff between computational effort and exactness in deciding between solving or /. As our simulation results in Section V confirm, if all maximal cliques of a chordal extension are available then solving is always better than solving as they have the same accuracy (in terms of exactness) but is usually much faster to solve for large sparse networks . Indeed is a subgraph of any chordal extension of which is, in turn, a subgraph of the complete graph on nodes (denoted as ), and hence . Therefore, typically, the number of variables is the smallest in , the largest in , with in between. However the actual number of variables in is generally greater than , depending on the choice of the chordal extension . Choosing a good is nontrivial; see for more details. This choice however does not affect the optimal value .
If is acyclic then .
If has cycles then .
Theorem 1 and Corollary 2 do not provide conditions that guarantee any of the relaxations are exact. See for such sufficient conditions in the bus injection model. Corollary 2 implies that if is exact, so are and . Moreover Lemma 4 below relates the feasible sets of , not just their optimal values. It implies that are equivalent problems if has no cycles.
II-F Proof of Theorem 1
To define the set of -partial matrices associated with suppose is a graph on nodes such that is a subgraph of , i.e., . An -partial matrix is called an -completion of the -partial matrix if
i.e., agrees with on the index set . If is , the complete graph on nodes, then is an matrix. is a Hermitian -completion if . is a psd -completion if in addition . is a rank-1 -completion if . It can be checked that if then does not have a psd -completion. If then it does not have a rank-1 -completion. Define
Similarly define the corresponding sets for and :
The sketch of the proof is as follows. We prove Theorem 1(a) in Lemma 3 and then Theorem 1(b) in Lemma 4 below. Theorem 1(c) then follows from these two lemmas.
Now, fix a chordal extension of . We now prove:
Let be true for all and consider a cycle of length in . Since is chordal, this cycle must have a chord, i.e., an edge between two nodes, say, and , that are not adjacent on the cycle. Then and are two cycles in . By hypothesis, and are true and hence
Note that the above definition is well-defined: if there is another sequence of edges from node 1 to node , the above relation still defines uniquely because satisfies the cycle condition. Let
To prove Theorem 1(c) note that parts (a) and (b) imply
Hence is exact iff is exact ). If is exact, i.e., , then both inequalities above become equalities, proving Theorem 1(c). This completes the proof of Theorem 1.
III Branch flow model and SOCP relaxation
: The complex impedance on the line. Thus .
: The complex current from bus to bus .
: The sending-end complex power from buses to .
Recall that for each node , is the complex voltage at bus and is the net complex power injection (generation minus load) at bus .
The branch flow model of is defined by the following set of power flow equations:
where (11a) imposes power balance at each bus and (11b) defines branch power and describes Ohm’s law. The power injections at all buses satisfy
where and are known limits on the net generation at bus . It is often assumed that the slack bus (node 1) has a generator and there is no limit of ; in this case . As in the bus injection model, we can eliminate the variables by combining (11a) and (12) into:
All voltage magnitudes are constrained as follows:
Similarly, if the objective is to minimize the weighted sum of real power generation in the network, then
where is the given real power demand at bus .
and the convex superset that is a second-order cone:
The first row of corresponds to the slack bus. Define the reduced incidence matrix obtained from by removing the first row and taking the transpose. Consider the set of such that
A solution , if exists, is unique in . Moreover the necessary and sufficient condition for the existence of a solution to (21) has a familiar interpretation: the implied voltage angle differences sum to zero (mod ) around any cycle [37, Theorem 2].
IV Equivalence of bus injection and branch flow models
Second, it is important that we utilize both models because some relaxations are much easier to formulate and some sufficient conditions for exact relaxation are much easier to prove in one model than the other. For instance the semidefinite relaxation of power flows has a much cleaner formulation in the bus injection model. The branch flow model especially for radial networks has a convenient recursive structure that not only allows a more efficient computation of power flows e.g. , but also plays a crucial role in proving the sufficient conditions for exact relaxation in . Since the variables in the branch flow model correspond directly to physical quantities such as branch power flows and injections it is sometimes more convenient in applications.
is injective, i.e., if .
is surjective and hence its inverse exists; moreover defined in (28)–(29) is indeed ’s inverse.
where the last equality follows from (17). Substituting this and (28)–(29) into (7a) we get, for each :
where the last equality follows from (18). Substituting (17) into (33) yeilds . This together with (from (28)) means and .
where the last equality follows from (17). Hence satisfies (27) and . ∎
V Numerics
We now illustrate the theory developed so far through simulations. First we visualize in Section V-A the feasible sets of OPF and their relaxations for a simple 3-bus example from . Next we report in Section V-B the running times and accuracies (in terms of exactness) of different relaxations on IEEE benchmark systems.
Consider the 3-bus example in Figure 4 taken from (but we do not impose line limits) with line parameters in per units in Table I. Note that this network has shunt elements. For this example, is the same problem as and is the same problem as . Hence we will focus on the feasible sets of (which is the same as that of ) and the feasible sets of , . Each problem has a Hermitian matrix as its variable. Recall that is the complex power injection at node and thus for each Hermitian matrix , we have the following map:
To visualize the various feasible sets, define the following set in 2 dimensions:
For the projections on the plane define the set
V-B IEEE benchmark systems
For IEEE benchmark systems , we solve , and in MATLAB using CVX with the solver SeDuMi after some minor modifications to the resistances on some lines A resistance of p.u. is added to lines with zero resistance.. The objective values and running times are presented in Table II. The problems and have the same optimal objective value, i.e., , as predicted by Theorem 1. We also report the ratios of the first two eigenvalues of the optimal in For the 2383-bus system, we only run . For the optimal -partial matrix , we report the maximum and the median of the non-zero ratios of the first and second eigenvalues of over all cliques in .; for most cases, it is small indicating that the relaxation is exact. The optimal objective value of is lower (), indicating that the optimum of the SOCP relaxation that is computed is not feasible for . As Table II shows, is much faster than for large networks. The chordal extensions of the graphs are computed a priori for each case . is faster than both and , but yields an infeasible solution for most IEEE benchmark systems considered.
VI Conclusion
Acknowledgment
We are thankful to Prof. K. Mani Chandy and Lingwen Gan at Caltech for helpful discussions. We also acknowledge the support of NSF through NetSE grant CNS 0911041, DoE’s ARPA-E through grant DE-AR0000226, the National Science Council of Taiwan (R. O. C.) through grant NSC 103-3113-P-008-001, Southern California Edison, and the Resnick Institute at Caltech.