Stochastic OPF by Constraint Relaxation
Stochastic OPF by Constraint Relaxation
Abstract— This paper describes an algorithm for the so- linear and a nonlinear formulation of the stochastic OPF.
lution of the stochastic optimal power flow problem. The Linear examples illustrate the extraordinary economy of
stochastic OPF minimizes the total cost of a base case op-
erating state plus the expected cost of recovery from con- applying constraint relaxation to the optimization.
tingencies such as line or generator outages. The algo-
rithm presented is based on a relaxation method in which II. Linear problem formulation
constraints are modeled only as they become active. This
method efficiently models all transmission constraints using The stochastic OPF for a linear DC network can be for-
a rank-one update to the distribution matrix. Numerical mulated in the following way
examples illustrate the dramatic reduction in problem size
achieved in practice by constraint relaxation. They also con- K
X
firm that the expected cost of a dispatch that accommodates Minimize cT0 u0 + pk cTk uk (1)
failures according to their probability of occurrence is less
than the cost of a preventive operating mode. k=1
This work was supported by NSF grants ECS-9810288 and ECS- Here µ is a nonnegative barrier parameter and Nk is the
0086706. length of vector sk . The Karush-Kuhn-Tucker or first-order
∇λ L = g(x0 , u0 )
III. Nonlinear problem formulation
∇ π0 L = f (x0 , u0 ) + s0
The nonlinear stochastic OPF for an AC network can be ∇λk L = gk (xk , uk )
formulated in a similar framework, a single optimization
problem which includes a base case and a set of contin- ∇ πk L = fk (xk , uk ) + sk
gency cases coupled with ramping constraints. With the ∇γ L = h(u0 , uk ) + σ
generator ramping constraints shown explicitly, this more ∇ s0 L = π0 − µS0−1 e
general formulation can be written ∇ sk L = πk − µSk−1 e
K
X ∇σ L = γ − µΣ−1 e
Minimize c(x0 , u0 ) + pk ck (uk ) (15) s0 ≥ 0, sk ≥ 0, σ ≥ 0
k=1
for k = 1, · · · , K
Subject to g(x0 , u0 ) =0 (16)
f (x0 , u0 ) ≤0 (17) where Σ = diag(σ) and e is a vector of ones of appropriate
gk (xk , uk ) =0 (18) dimension. (Compare (7–14).)
TABLE I
To form the outer loop in the solution algorithm, ap-
Test cases
ply a Newton linearization by expanding the KKT equa-
tions about x0 , u0 , xk , uk . Several more steps then lead
to a small system for the inner loop. First, eliminate al- case IEEE system Number of contingencies Nc
gebraically the state variables ∆x0 and ∆xk and the mul- 1 30 bus 6
tipliers λ and λk . Then linearize the remaining reduced 2 118 bus 53
system about s0 , sk , and σ. Finally, eliminate the con-
trol variables ∆u0 and ∆uk . The resulting bordered-block
TABLE II
diagonal system to be solved in the inner loop is
Problem dimensions
∆π0 r0
V0T
C0 ∆π1 r1
C1 V1T case Nc Total coupling constraints
∆π2 r2
. .. .
.. . = .
1 6 162
.. ..
T
2 53 7579
CK VK
∆πK rK
V0 V 1 · · · V K M
∆γ rγ
(21) approach is to set the base case to accommodate all con-
Here the block matrix C0 corresponds to the base case, tingencies without resetting any control. In these simple
the blocks Ck , k = 1, · · · , K, correspond to each of the examples, in which the failure probabilities are uniformly
contingency cases, and the bordering blocks Vk arise from distributed, the stochastic approach is at least 2% less ex-
the generator ramping constraints that couple the subprob- pensive than the conservative approach.
lems.
Potentially, each diagonal block in (21) is as large as V. Conclusions
the number of all the line flow and control variable con-
straints in a single case, and there is one more block than Stochastic OPF is challenging because each contingency
the number of contingencies; (21) could be enormous! But considered potentially introduces a new problem as large as
constraint relaxation limits the entries in each ∆πk to just the original but with a different distribution matrix. This
the constraints active for contingency k, a number which paper presents an algorithm that introduces two significant
is typically quite small compared with the size of the base computational efficiencies,
case problem. The actual solution of this (significantly) • restricting attention to a small set of violated constraints,
B = U T DU (22) B = B − EX −1 E T .
Note that one forward substitution and one divide-by- where xl is the reactance of line l. Applying the Sherman-
diagonal suffices to compute p. Computation of eij requires Morrison-Woodbury matrix inversion theorem to B we get
one fast forward substitution. Calculation of pl requires −1
two sparse dot products since eij is sparse. B = B −1 + B −1 E(X − E T B −1 E)−1 E T B −1 .
Suppose we consider a contingency in which line l con- Now consider the real power flow on branch l connecting
necting buses m and n is removed. Then the modified B buses i and j. If we let X̃ = X − E T B −1 E then
matrix is given by
1 T −1
1 pl = e B p
B=B− emn eTmn xl ij
xl
1 T −1
where emn is a vector containing a 1 in location m and = e [B + B −1 E X̃ −1 E T B −1 ]p
xl ij
−1 in location n. Using the Sherman-Morrison-Woodbury 1
−1
matrix inversion theorem, B is given by = pl + eTij B −1 E X̃ −1 E T B −1 p
xl
−1 B −1 emn eTmn B −1 Here pl is the base case or pre-contingency real power flow.
B = B −1 +
xl − eTmn B −1 emn Letting B −1 E = U −1 D−1 E where D−1 comes from the
= B + γl B −1 emn eTmn B −1
−1 factorization of the base case network B matrix as defined
in (22) and E = (em1 n1 em2 n2 · · · emk nk ) where emk nk
where is found by forward substitution in (23) then we have
1
γl = .
xl − eTmn B −1 emn 1 T −1 T
pl = p l + e D E X̃ −1 E p = pl + glT dl (24)
In this case, for the real power flow on branch l connecting xl ij
buses i and j we have
where
1 T −1
pl = e B p 1 T −1
xl ij pl =e B p
xl ij
1 T −1
= e [B + γl B −1 emn eTmn B −1 ]p 1 T
xl ij gl = E D−1 eij
xl
1 T γl
= eij p + eTij D−1 emn eTmn p dl = X̃ −1 E p
T
xl xl
Equation (24) expresses the post-contingency real power
flow pl in terms of the pre-contingency flow pl and a k × k
update matrix that can be computed efficiently. This
approach permits computing the post-contingency power
flows without recalculating the entire post-contingency dis-
tribution matrix B. Hence, the post-contingency transmis-
sion constraints in (5) can be efficiently tested for viola-
tions. Those that are violated are added to the constraint
set for future iterations; i.e., the ∆πk block of (21) is en-
larged accordingly.
VII. References
[1] N. Alguacil, A. J. Conejo, “Multiperiod Optimal power Flow
Using Benders Decomposition”, IEEE Transactions on Power
Systems, Vol. 15, No. 1, February 2000.
[2] K. Clements, P. Davis, “Contingency Constrained Optimal
Power Flow for Deregulated Electricity Markets”, NSF proposal,
March 24, 1999. Grant ECS-9810288
[3] G. Infanger,Planning under uncertainty: Solving large-scale
stochastic linear programs, Boyd and Fraser, 1994.
[4] M. Madrigal, V. H. Quintana, “An Interior-Point/Cutting-Plane
Method to Solve Unit Commitment Problems”, IEEE Transac-
tions on Power Systems, Vol. 15, No. 3, August 2000.
[5] A. Monticelli, M. V. F. Pereira, S. Granville, “Security-
Constrained Optimal Power Flow With Post-Contingency Cor-
rective Rescheduling”, IEEE Transactions on Power Systems,
Vol. 2, No. 1, Feb. 1987.
[6] I. M. Nejdawi, K. A. Clements, P. W. Davis, “An Efficient Inte-
rior Point Method for Sequential Quadratic Programming Based
Optimal Power Flow”, IEEE Transactions on Power Systems,
Vol. 15, No. 4, Nov. 2000.
[7] B. Stott, O. Alsac, A. Monticelli, “Security Analysis and Opti-
mization”, Proceedings of the IEEE, Vol. 75, No. 12, pp. 1623–
1644, Dec. 1987.
[8] G. Irisarri, L. Kimball, K. Clements, A. Bagchi, P. Davis, ”Eco-
nomic Dispatch with Network and Ramping Constraints via In-
terior Point Methods,” IEEE Trans. Power Systems, Vol.13, No.
3, pp. 236-242, Feb, 1998.
VIII. Biographies
Lucia M. Kimball (Member, IEEE) received the B.S. in math-
ematics from the University of Massachusetts, Lowell in 1987 and
the M.S. and Ph.D. degrees in applied mathematics from Worcester
Polytechnic Institute in 1989 and 1997. She is currently an Associate
Professor in the Department of Mathematical Sciences at Bentley
College, Waltham, Massachusetts USA.
Kevin A. Clements (Fellow, IEEE) received the B.S. degree
in Electrical engineering from Manhattan College, Bronx, NY, in
1963, and M.S. and Ph.D. degrees from the Polytechnic Institute
of Brooklyn, Brooklyn, NY, in 1967 and 1970, respectively. He is
currently a Professor at Worcester polytechnic Institute, Worcester,
Massachusetts USA.
Slobodan Pajic (Student Member, IEEE) was born in Kikinda,
Serbia. He received the B.S. degree in electrical engineering from
the School of Electrical Engineering, University of Belgrade, Serbia
in 2001. He is currently pursuing his M.S. degree in electrical engi-
neering at Worcester Polytechnic Institute, Worcester, Massachusetts
USA. His research interests are in the areas of state estimation in
power systems, optimal power flow, power system computation, and
methods for the solution of large-scale systems
Paul W. Davis (Member, IEEE) received the B.S., M.S., and
Ph.D. degrees in applied mathematics from Rensselaer Polytechnic
Institute, Troy, New York. In 1970 he joined the Mathematical
Sciences Department at Worcester Polytechnic Institute, Worcester,
Massachusetts USA, where he is currently a Professor and Dean of
Interdisciplinary and Global Studies.