Professional Documents
Culture Documents
1 s2.0 S235246771830105X Main
1 s2.0 S235246771830105X Main
article info a b s t r a c t
Article history: Deregulated energy markets, demand forecasting, and the continuously increasing share of renewable
Received 19 March 2018 energy sources call – among others – for a structured consideration of uncertainties in optimal power
Received in revised form 16 August 2018 flow problems. The main challenge is to guarantee power balance while maintaining economic and
Accepted 16 August 2018
secure operation. In the presence of Gaussian uncertainties affine feedback policies are known to be
Available online 27 August 2018
viable options for this task. The present paper advocates a general framework for chance-constrained opf
problems in terms of continuous random variables. It is shown that, irrespective of the type of distribution,
Keywords:
Chance-constrained optimal power flow the random-variable minimizers lead to affine feedback policies. Introducing a three-step methodology
Uncertainties that exploits polynomial chaos expansion, the present paper provides a constructive approach to chance-
Affine policies constrained optimal power flow problems that does not assume a specific distribution, e.g. Gaussian, for
Polynomial chaos the uncertainties. We illustrate our findings by means of a tutorial example and a 300-bus test case.
© 2018 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY license
(http://creativecommons.org/licenses/by/4.0/).
https://doi.org/10.1016/j.segan.2018.08.002
2352-4677/© 2018 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/).
232 T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242
limits are satisfied (inequality constraints). Under dc power flow or written in terms of realizations of the random variables
conditions the standard formulation for opf reads
∀ξ̃ ∈ Ω : 1⊤
N (ũ(d̃) + d̃) = 0, (3b)
min J(u) (1a)
u∈RN where ũ(d̃) = u(d(ξ̃ )) ∈ RN is the control input, and d̃ = d(ξ̃ ) ∈ RN
s. t. 1N (u + d) = 0,
⊤
(1b) is the realization of the uncontrollable power. The decision variable
of stochastic opf is thus the random vector u ∈ L2 (Ω , RN ) which
u ≤ u ≤ u, (1c)
corresponds to a feedback control policy.
p ≤ pl = φ (u + d) ≤ pl , (1d)
l
Cost function
where (1b) is the power balance with 1N = [1 . . . 1] ∈ R . The ⊤ N
For stochastic opf the cost function has to map policies to scalars
generation limits and line limits are u, u ∈ RN and p , pl ∈ RNl
l
respectively, and φ ∈ RNl ×N is the power transfer distribution Ĵ : L2 (Ω , RN ) → R. (4)
factor matrix, which maps the net power p linearly to the line
flows pl ∈ RNl . A typical choice is Ĵ(u) = E [J(u)], where E [·] is the expected
value [29].
2.1. Stochastic optimal power flow
Inequality constraints
The presence of uncertainties requires the inequality con-
Deterministic opf (1) assumes perfect knowledge of the un-
straints (1c), (1d) to be reformulated, because inequality con-
controllable power d ∈ RN . Instead, stochastic opf models power
straints formulated in terms of random variables are in general
consumption and/or the power feed-in due to renewables as (non-
not meaningful. This may be done, for example, either by using
trivial) continuous second-order random vectors d ∈ L2 (Ω , RN )
chance constraints (individual/joint) or robust counterparts. Pos-
with Ω ⊆ RN as the set of possible outcomes.1 We will show
sible chance constraint formulations are [5,8,30]
that the probabilistic modeling of d requires a reformulation of
P((u ≤ u ≤ u) ∩ (pl ≤ pl ≤ pl )) ≥ 1 − ε,
{
the deterministic opf problem (1) in terms of random variables as joint:
decision variables.
the fluctuations, and ensuring economic and secure operation of following optimization problem
the overall system. This also means that the solutions from cc-
min h ⊤ u0 (8a)
opf are applicable on the same time scale as economic dispatch u0 ,α∈RN
and agc. □
N (u0 + d0 ) = 0,
1⊤
s. t. (8b)
1 − 1⊤Nα = 0
Remark 2 (Online opf vs. cc-opf). Online optimal power flow √
is another approach to tackle opf under uncertainty [32]. The ui ≤ E [ui ] ± βu Var [ui ] ≤ ui , (8c)
√
main idea is to measure the realization of the uncertainty, to p ≤ E pl,j ± βl Var pl,j ≤ pl,j ,
[ ] [ ]
(8d)
l,j
formulate and solve a corresponding opf problem, and to apply
the generation inputs to the grid. The conceptual advantage of ∀i ∈ N , ∀j ∈ Nl ,
online opf is that it acts irrespective of the distribution of the where pl,j is the jth entry of the line flow pl = φ (u + d) with
uncertainty; the method reacts to realizations ‘‘online’’. However, the matrix of power transfer distribution factors φ . The nominal
online opf relies on accurate online state estimation as well as dc power flow and the summation condition (8b) ensure viability
reliable, fast, repeated, and accurate solutions of large-scale opf of the feedback policy u, cf. [4, Lemma 2.1]. The generation limits
problems. Chance-constrained opf differs conceptually as it for- and line flow limits are modeled as individual chance constraints
mulates a single optimization problem that determines policies that admit the exact reformulation (8c) and (8d) for Gaussian un-
certainties [3]; they correspond to the individual chance constraint
instead of set points. These policies can be applied in real time,
formulation from (5). Let u⋆0 , α ⋆ denote the optimal solution of
similarly to agc. However, chance-constrained opf hinges on both
Problem (8)—assuming it exists. Then, the optimal feedback policy
the uncertainty model and the problem formulation. □
is u⋆ (ξ ) = u⋆0 − α ⋆ 1⊤
N Sd ξ . Given the realization ξ̃ of the random
variable ξ the corresponding realization ũ⋆ of the random variable
u⋆ becomes ũ⋆ = u⋆ (ξ̃ ) = u⋆0 −α ⋆ 1⊤N Sd ξ̃ , which is the control action.
2.2. Gaussian uncertainties
Remark 3 (Gaussian random variables). Under Setting 1 the power
demand d, the feedback policy u, and the line power pl are Gaussian
The purpose of this section is to show that cc-opf from (6)
random variables,
embeds existing approaches to cc-opf under dc power flow and
Gaussian uncertainties [3,12,33]. To this end, we restate the setting d ∼ N(d0 , Σd ), Σd = Sd Sd⊤ (9a)
from [3,12,33] entirely in random variables. u ∼ N(u0 , Σu ), Σu = (α 1⊤
N Sd )(α 1N Sd ) ,
⊤ ⊤
(9b)
pl ∼ N(pl0 , Σl ), Σl = (φ (I − α 1⊤
N )Sd )(φ (I − α 1N )Sd ) , (9c)
⊤ ⊤
Setting 1 (Linear cost, Gaussian uncertainties [3,12,33]).
with all covariance matrices being positive semidefinite. Moreover,
1. The deterministic cost function J(u) = h⊤ u is linear. all random variables admit an affine parameterization
2. The uncertain power demand d is modeled as
x = x0 + Σx ξ , x ∈ {d, u, pl }, x ∈ {d, u, l}, (9d)
d = d0 + Sd ξ , (7a) w.r.t. the stochastic germ ξ ∼ N(0, IN ). □
N N ×N
with d0 ∈ R , nonsingular Sd ̸ = 0N ×N ∈ R . The N- Remark 3 shows and emphasizes the dichotomy of u: it is both a
valued stochastic germ ξ ∼ N(0, IN ) is a standard multivariate random variable and a feedback policy in terms of the (realization
Gaussian. of the) stochastic germ, i.e. once the realization of ξ is known the
3. The feedback policy u is evaluation of u(ξ ) yields an applicable control.6
Now we can address the question raised at the beginning of
u = u(ξ ) = u0 − α 1⊤
N Sd ξ , this section, namely how cc-opf (6) relates to Problem (8). To this
end, consider cc-opf (6) under Setting 1 with the cost formulation
1N (u0 + d0 ) = 0,
⊤
(7b)
Ĵ(u) = E [J(u)]. This gives
1 − 1N α = 0,
⊤
min E[h⊤ u] (10a)
u∈L2 (Ω ,RN )
with unknown u0 , α ∈ RN .4
4. Inequality constraints are modeled as individual chance con- N (u + d) = 0,
s. t. 1⊤
straints, and rewritten using the first and second moment, (8c), (8d), ∀i ∈ N , ∀j ∈ Nl . (10b)
e.g. for upper bounds
√ Proposition 1 (Equivalence of (8) and (10)). Let the optimal solution
E [x] + β (ε ) Var [x] ≤ x ⇒ P(x ≤ x) ≥ 1 − ε, (7c) to Problem (8) be u⋆0 , α ⋆ ∈ RN . Furthermore, let the optimal solution
to Problem (10) be u⋆ ∈ L2 (Ω , RN ). Then,
where ε ∈ [0, 1] is a user-defined security level.5 □
u⋆ = u⋆0 − α ⋆ 1⊤
N Sd ξ (11)
To obtain the numerical values of the expected generation u0
and the coefficients α from Setting 1, [3,33] suggest solving the holds such that u⋆ ∼ N(u⋆0 , (α ⋆ 1⊤ ⋆ ⊤
N Sd )(α 1N Sd ) ). □
⊤
[ ]
Proof. First, the cost function (10a) becomes E h⊤ u = h⊤ u0 ,
4 This choice of feedback control is also called balancing policy [12], reserves which is (8a). Using the uncertainty modeling (7) the random-
representation [9], or base point/participation factor [31]. variable dc power flow (10b) becomes
5 These formulations are popular, because they are exact for Gaussian random
N (u + d) = 1N (u0 + d0 ) + (1 − 1N α ) 1N Sd ξ =: x.
variables (choosing β accordingly); i.e. (7c) holds in both directions. For general 1⊤ ⊤ ⊤ ⊤
(12)
unimodal, symmetric distributions, the reformulations (7c) can be conservative,
nevertheless yield convex reformulations [3]. For highly skewed distributions less
conservative results can be obtained by considering higher-order (centralized) 6 This assumes perfect and immediate measurement of the realization of ξ . State
moments, i.e. skewness and/or kurtosis [34]. estimation of power systems is beyond the scope of this paper.
T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242 235
for all ℓ, k ∈ N0 , where γℓ is a positive constant, and δℓk is the i.e., the orthogonal polynomial basis {ψℓ }Lℓ=0 has at most degree
Kronecker-delta.8 W.l.o.g. we choose ψ0 = 1.9 Polynomial chaos one. The Rn -valued random vector x ∈ L2 (Ω , Rn ) is said to have
allows to rewrite Rnx -valued random vectors x = [x1 , . . . , xnx ]⊤ an exact affine pce if every entry xi admits an exact affine pce (20)
with elements xi ∈ L2 (Ω , R) for i = 1, . . . , nx as for i = 1, . . . , n. □
∞
∑ In other words—Definition 2 demands the polynomial basis
x= xℓ ψℓ with xℓ = [x1,ℓ , . . . , xnx ,ℓ ]⊤ ∈ Rnx , (16a) {ψℓ }Lℓ=0 to be at most affine, i.e. the stochastic germ ξ appears
ℓ=0 in no higher order. It remains to discuss how to choose this
specific polynomial basis. For a variety of well-known univariate
7 An alternative proof of viability is given in [4]. distributions, for example Beta, Gamma, Gaussian, or Uniform
8 The (non-unique) multivariate basis can be constructed from the univariate distributions, the orthogonal bases that yield exact affine pces (17)
bases cf. [28]. are known. In the remainder we refer to these uncertainties as
9 For univariate stochastic germs one chooses the basis s.t. deg ψ = ℓ. canonical uncertainties.
ℓ
236 T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242
Corollary 1 (Exact affine pce for canonical uncertainties [35]). Let Example 2. Consider a continuous random variable x with proba-
x ∈ L2 (Ω , R) follow one of the following univariate distributions: bility density fx : [0, 1] → R≥ , and fx (x) = π/2 sin(π x). According
Beta, Gamma, Gaussian, or Uniform. Then, for the following stochastic to Proposition 2, an orthogonal basis is then
germs ξ
ψ0 = 1,
Distribution Support Polyn. Basis ψℓ Notation
π
∫ 1
1
Beta [0, 1] Jacobi
(α,β )
Pℓ ξ ∼ B(α, β ) ψ1 = x − E [x] = x − τ sin(πτ ) dτ = x − ,
2 0 2
Gamma [0, ∞) Gen. Laguerre Lℓ ξ ∼ Γ (p)
Gaussian (−∞, ∞) Hermite Heℓ ξ ∼ N(0, 1) with ⟨ψ1 , ψ1 ⟩ = Var [x] = 1/4 − 2/π 2 . The pce coefficients of x
Uniform [0, 1] Legendre Pℓ ξ ∼ U(0, 1)
become [x0 , x1 ]⊤ = [1/2, 1]⊤ . □
the pce of x
Both Corollary 1 and Proposition 2 consider a single univariate
1
∑ uncertainty. This may not suffice when modeling uncertainties
x = x̂ = xℓ ψℓ = x0 + x1 ψ1 for cc-opf problems, where multiple sources of uncertainty are
ℓ=0 present (for example solar, wind, demand). However, the combi-
is an exact affine pce in the basis {ψℓ }1ℓ=0 . □ nation of several independent exact affine pces can still be cast as
a multivariate exact affine pce.
Example 1. Any univariate Gaussian random variable x ∼
Proposition 3 (Multivariate exact affine pce). Consider n indepen-
N(µ, σ 2 ) admits the exact affine pce with respect to the stochastic
dent random variables with exact affine pces xi ∈ L2 (Ωi , R) with
germ ξ ∼ N(0, 1)
respective pces xi = xi0 + xi1 ψ1i for i = 1, . . . , n. Then, the Hilbert
x = µ + σ ξ = x0 + x1 He1 , space L2 (Ω1 × · · · × Ωn , R) w.r.t. probability measure P = P1 · · · Pn
is spanned by the orthogonal basis
where [x0 , x1 ] = [µ, σ ]⊤ are the pce coefficients, and {ψℓ }1ℓ=0 =
⊤
{Heℓ }1ℓ=0 = {1, ξ } is the affine Hermite polynomial basis that is {ψℓ }Lℓ=0 = {1, ψ11 , ψ12 , . . . , ψ1n } (22)
orthogonal w.r.t. the univariate Gaussian measure, namely
∫ of dimension L + 1 = n + 1, cf. (18) with nξ = n, and nd = 1. Let
1 − τ2
2
ei be the ith unit vector of Rn , and let ψ = [ψ1 , . . . , ψn ]⊤ . Then, the
⟨ψ0 , ψ0 ⟩ = ⟨He0 , He0 ⟩ = √ 1e dτ = 1,
2π ∫R pce
1 τ2
⟨ψ1 , ψ1 ⟩ = ⟨He1 , He1 ⟩ = √ τ 2 e− 2 dτ = 1, xi ∼ i ψ
= xi0 + e⊤ (23)
2π ∫R
1 τ2 recovers the ith random variable xi . □
⟨ψ0 , ψ1 ⟩ = ⟨He0 , He1 ⟩ = √ τ e− 2 dτ = 0.
2π R
Proof. The assertion follows from the fact that the space over the
As can be seen, the univariate Gaussian admits an exact affine pce product probability space L2 (Ω1 × · · · × Ωn , R) is isomorphic to
in the Hermite polynomial basis. Of course it is possible to derive the Hilbert space tensor product of the Hilbert spaces L2 (Ωi , R),
a polynomial chaos expansion of a Gaussian random variable in a see [28]. □
different orthogonal basis, for example in a Legendre basis. In that
case, however, the pce of x will not be exact and affine with respect Example 3. We illustrate how pce applies to the multivariate
to this Legendre basis. □ Gaussian random variables from Setting 1: The stochastic germ
ξ ∼ N(0, IN ) is RN -valued and standard Gaussian. According to
Going beyond canonical uncertainties, the exact affine pce for
Corollary 1 every univariate ξi requires a Hermite polynomial basis
any random variable of finite variance is obtained as follows.
{Heiℓ }1ℓ=0 = {1, ξi } of degree at most nd = 1 for all i = 1, . . . , nξ
with nξ = N. The tensorized pce-basis from Proposition 3 is the
Proposition 2 (Exact affine pce for non-canonical uncertainty). Let N-variate Hermite polynomial basis {ψℓ }Lℓ=0 = {1, ξ1 , . . . , ξN }
x ∈ L2 (Ω , R) with probability measure P be given. Then, x can be of dimension L + 1 = N + 1. Orthogonality holds w.r.t. to the
used directly as the stochastic germ, and the pce of x multivariate Gaussian measure, i.e. for all i, j = 0, . . . , N
1 (√
0, i ̸ = j
)−N∫ {
∑ τ ⊤τ
x = x̂ = x ℓ ψℓ = x 0 + x 1 ψ1 (21) ⟨ψi , ψj ⟩ = 2π ψi (τ )ψj (τ ) e− 2 dτ =
1, i = j.
ℓ=0
The pce (17) for the uncertain power demand (7a) from Setting 1
is exact affine with pce coefficients [x0 , x1 ]⊤ = [E [x] , 1]⊤ w.r.t. the
is then exact and affine
orthogonal basis {ψℓ }1ℓ=0 = {1, x − E [x]}. □
L
∑
Proof. Direct inspection of (21) with the given pce coefficients d = d̂ = d0 + Sd ξ = dℓ ψℓ = d0 + Dψ
shows that x = x. Orthogonality of the basis {ψℓ }1ℓ=0 is shown by ℓ=0
verifying the orthogonality condition (7b), with ψ = ξ = [ξ1 . . . ξN ]⊤ . The RN -valued pce coefficients dℓ for
∫ ℓ = 1, . . . , N correspond to the columns of Sd . Similarly, the pce
⟨ψ0 , ψ0 ⟩ = 1 dP(τ ) = 1 for the feedback policy (7b) from Setting 1 is exact and affine
L
∫ ∫
⟨ψ0 , ψ1 ⟩ = 1 (τ − E [xi ])dP(τ ) = τ dP(τ ) − E [x] = 0
∑
u = u0 − α 1⊤
N Sd ξ = uℓ ψℓ = u0 + U ψ,
∫ ℓ=0
⟨ψ1 , ψ1 ⟩ = (τ − E [xi ])2 dP(τ ) = Var [x] , where the real-valued pce coefficients uℓ for ℓ = 1, . . . , N corre-
spond to the columns of −α 1⊤
N Sd . □
which completes the proof. □
T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242 237
4. Stochastic opf in three steps Proof. Viability of the feedback control (25b) follows from linearity
of the random-variable dc power flow (10b). Under Setting 2
Recall that Section 2 concluded that cc-opf according to Prob- Eq. (10b) becomes
lem (10) provides optimal affine feedback policies irrespective of L
the probability distribution of d. On the other hand, Example 3
∑
1⊤ N dℓ ψℓ + 1N u = 0.
1⊤ ⊤
N (d + u) = (26)
from Section 3 analyzes Setting 1 for cc-opf from the point of
ℓ=0
view of pce. The result is that the affine feedback from Setting 1
is equivalent to a pce, and the solution to Problem (8) provides The basis {ψℓ }Lℓ=0 – which is at most affine by assumption – spans
the optimal pce coefficients from (3). In the following, both ob- the (L+1)-dimensional subspace M = span{ψℓ }Lℓ=0 ⊆ L2 (Ω , R).11
servations will be connected and it will be shown that the cc- All entries di of d are elements of M. To attain a feasible feedback
opf Problem (10) can be reformulated as an optimization problem control for (26) it is necessary and sufficient to choose ui ∈ M;
in terms of pce coefficients of optimal feedback policies. More hence u is exact affine. To attain zero∑ in (26), which corresponds
L
ℓ=0 1N (dℓ + uℓ ) ψℓ = 0
precisely, the following three-step methodology is proposed: to viability of the feedback control, ⊤
The main assumption in Setting 2 is finiteness and exactness Power balance (24b) in terms of random variables holds iff the
of the pce for the uncertainty d—which is no severe restriction, cf. power balance holds in terms of the pce coefficients,
Section 3.10 Setting 2 also addresses Step 2: it contains an affine
N (dℓ + uℓ ) = 0, ℓ = 0 , . . . , L.
feedback parameterization. It remains to show that this feedback 1⊤ (28b)
parameterization is indeed viable.
This has been proved in Theorem 1, and is contained in (25b)
Theorem 1 (Viable feedback control via pce). Let the uncertain power from Setting 2.
demand d admit an exact affine pce (25a). Then, any viable feedback
control (25b) admits an exact affine pce. □
11 In principle any basis B spanning M is possible. The choice of the basis
{ψℓ }Lℓ=0 is natural, because orthogonality is computationally advantageous as it
10 Note that Setting 2 contains Setting 1: quadratic costs generalize linear costs; allows the deterministic reformulation (27) of the random-variable power flow
Gaussian random variables admit an exact affine pce; the feedback parameteriza- equations. It further yields L2 -optimality. Furthermore, applying Gram–Schmidt
tion is affine and viable; and the inequality constraint modeling is equivalent. orthogonalization to B leads to the basis {ψℓ }Lℓ=0 .
238 T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242
Inequality constraints
where ui,ℓ is the ℓth pce coefficient of the control input at bus i.
The same procedure applies to the uncertain line flows pl,j for lines
l ∈ Nl .
Fig. 1. Three-bus system with two generators and one uncertain load.
Optimization problem
L
∑ The socp (29) is a tractable convex reformulation of the cc-
min J(u0 ) + γℓ u⊤
ℓ Huℓ (29a) opf Problem (24), and it exhibits structural equivalence: the cost
uℓ ∈RN ∀ℓ=0,...,L
ℓ=1 function remains quadratic and positive definite, the random-
N (dℓ + uℓ ) = 0, ℓ = 0, . . . , L,
s. t. 1⊤ (29b) variable dc power flow remains linear. Also, the reformulated
L chance constraints are second-order cone constraints. Compared
∑ to a standard deterministic dc-opf Problem (1) with N decision
ui ≤ ui,0 ± βu √ γℓ u2i,ℓ ≤ ui , (29c) variables ui for i ∈ N , the socp (29) has N(L + 1) decision variables
ℓ=1
ui,ℓ for i ∈ N and ℓ = 0, . . . , L; for every bus i the (L + 1) pce
L
∑ coefficients have to be computed. In order to solve Problem (29),
p ≤ pl,j,0 ± βl √ γℓ p2l,j,ℓ ≤ pl,j , (29d) the positive numbers γℓ have to be computed. This can be done
l,j
ℓ=1 offline, for example via Gauss quadrature [28].
∀i ∈ N , ∀j ∈ Nl . In general, the pce dimension (L + 1) grows rapidly with the
number of sources of uncertainty and the required univariate ba-
Problem (29) is a convex second-order cone program (socp) where sis dimensions, see (18). However, problems with many sources
the pce coefficients of the control inputs are decision variables. The
of uncertainty are intrinsically complex, hence are expected to
optimal policy is obtained from the optimal solution u⋆ℓ of socp (29)
be challenging both conceptually and numerically. If exact affine
as follows
uncertainties are used to model uncertainties, then the required
L
dimension of the univariate bases reduces significantly. For exam-
u⋆ = u⋆ℓ ψℓ = u⋆0 + U ⋆ ψ ∈ L2 (Ω , RN ).
∑
(30)
ple, if every bus is modeled by a distinct exact affine uncertainty,
ℓ=0
then the number of decision variables of the socp (29) becomes
Given a particular realization d̃ of the uncertain demand, there N(L + 1) = N(N + 1).
exists a corresponding realization ξ̃ of the stochastic germ, i.e. d̃ =
d(ξ̃ ). This, in turn, results in a realization of the feedback pol- Remark 6 (Local balancing via pce). pce naturally yields local bal-
icy (30), namely the control input ancing policies [12], because every bus can react to all uncertainties
L individually, hence especially to its local source of uncertainty.
ũ⋆ = u⋆ (ξ̃ ) = u⋆ℓ ψℓ (ξ̃ ) = u⋆0 + U ⋆ ψ (ξ̃ ) ∈ RN .
∑
(31) Local imbalances can be accounted for locally, thus avoiding net-
ℓ=0 work congestions. Instead, the agc feedback from Setting 1 is a
The control action (31) satisfies the dc power flow equations by global balancing policy: the agc coefficient αj reacts to the sum
construction. Similarly, the probability for violations of generation of all fluctuations. This is motivated by current practice, where
limits and/or line limits is accounted for. the sum of all fluctuations may be the only available broadcast
signal by the tso. Then, however, local imbalances are, potentially,
Remark 5 (Realization d̃). In practice it is the N-valued realization accounted for globally, thus possibly creating network congestions.
d̃ of the power demand that is accessible, from which the nξ - Importantly, the pce coefficients can be constrained to also yield a
valued realization ξ̃ of the stochastic germ has to be computed. global balancing policy by enforcing equality of all non-zero-order
This is straightforward for multivariate exact affine uncertainties pce coefficients. □
for which nξ = L, see Proposition 3. All basis polynomials of degree
one can be concisely written as an RL -valued affine function ψ =
[ψ1 , . . . , ψL ]⊤ = a + Bξ with a ∈ RL and nonsingular B ∈ RL×L .
Rearranging (25a) leads to 5. Case studies
Fig. 3. Demand as Beta distribution—Results for security levels ε = 0.05 (dash-dotted), and ε = 0.10 (solid). Upper generation limit shown dotted.
Fig. 4. Demand as sinusoidal distribution—Results for security levels ε = 0.05 (dash-dotted), and ε = 0.10 (solid). Upper generation limit shown dotted.
Table 1. The optimal policies are, using (40), Specifically, we introduce 18 sources of uncertainties for power
[ ] the demand at buses
u 1 (d )
u ⋆ (d ) = Nu = {14, 17, 61, 77, 120, 121, 122, 139, 192, 204,
u 2 (d )
(45)
0.5126 0.1919 217, 218, 225, 228, 231, 234, 235, 246} ⊆ N ,
⎧[ ] [ ]
⎨ −0.5126 − 0.8081 d, ε = 0.05,
⎪
⎪
= [ (41) where buses i ∈ {14, . . . , 218} ⊂ Nu are modeled as Gaus-
0.4511 0.2376
] [ ]
sians, and buses i ∈ {225, . . . , 246} ⊂ Nu are modeled as Beta
⎩ −0.4511 − 0.7624 d, ε = 0.10,
⎪
⎪
distributions (Table 2 lists the shape parameters). The mean and
variance for the Gaussian uncertainties are computed such that the
which satisfy the power balance, e.g. for ε = 0.05
±3σ -interval contains ±15% deviations from the nominal value.
0.5126 0.1919
([ ] [ ] )
⊤ ⋆ Similarly, the support of the Beta distributions is the interval of
d + 12 u = d + 12 ⊤
− d = 0. (42)
−0.5126 0.8081 ±15% deviations from the nominal value.
Additionally, there is one source of uncertainty for wind power
The policies (41) are plotted in Fig. 4(a): While the risk level does (modeled as a Gaussian), and one source of uncertainty for so-
not have a big influence on the policies, the upper constraint lar power (modeled as a Beta distribution with shape param-
generation u1 is clearly violated for generator 1 for high demands eters (7,7)), yielding a total of nξ = 20 sources of uncer-
(< −1.7). The PDFs of the generators are plotted in Figs. 4(b) and
tainties. Solar and wind power are modeled to affect all buses.
4(c). The PDF of generator 1 confirms that the constraint violation
The constraint reformulation
√ parameters βu and βl are chosen
occurs with non-negligible probability. The empirical constraint
as βu = βl = (1 − ε )/ε with violation probability ε =
violation is given by
2.5%. This choice ensures distributionally robust satisfaction of the
u1 − u⋆1,0
( ( ( )))
⋆ 1 1 chance constraints [30].
P(u1 ≤ u1 ) = 1 + cos π ⋆ + , (43) The optimal pce coefficients are the solution to the socp (29),
2 u1 , 1 2
from which optimal policies are recovered.12 To assess the quality
where u⋆1,0 , u⋆1,1 are the zero- and first-order pce coefficient of of the optimized policies via cc-opf we compare them to the
generator 1. Inserting the numerical values from Table 1 yields policies from the most-informative case, namely in-hindsight opf
(hopf) [36]; in-hindsight policies are obtained by sampling the
ε = 0.05 : P(u⋆1 ≤ 0.85) = 0.9511 ≥ 1 − 0.05, (44a)
uncertainties, and then solving a deterministic opf problem for
ε = 0.10 : P(u⋆1 ≤ 0.85) = 0.9105 ≥ 1 − 0.10. (44b) every sample.13 The policy from hopf provides the best distri-
Hence, the employed chance constraint formulation is adequate for bution of optimal inputs and satisfies the constraints strictly for
this case, because the optimization problem (35) remains convex, every sample.
yet it is not overly conservative. For the chance constraint reformulations to be exact, it is im-
portant that pce computes the moments accurately. Let us assess
5.2. 300-bus example the quality of the standard deviation – which is related to the
second moment – as it acts as an uncertainty margin for the chance
This subsection considers the ieee 300-bus test case which has constraint reformulations, see (29). Fig. 5 shows two values for
N = 300 buses, Ng = 69 generation units, and Nl = 411 lines. The
results build on the simulation study from [20], but the present 12 The socp is solved in 300 ms with Matlab and Gurobi.
work considers twice as many sources of uncertainties (20 in the 13 We selected 20 000 samples. Solving the 20 000 deterministic opf problems
present paper vs. 10 in [20]). took about 12.5 min (without any parallelization).
T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242 241
Fig. 5. Standard deviations σi for generation buses computed by in-hindsight opf (hopf) and chance-constrained opf (cc-opf).
Table 2 be said about the minimizers if just the cost function formulation
Shape parameters of Beta distributions for 300-bus example. is changed? What is the ‘‘most meaningful’’ way to reformulate the
Bus 225 228 231 234 235 246 cost and the inequalities in the presence of certain inequalities? To
Parameters (8,3) (3,8) (8,3) (3,8) (7,7) (3,8) find an acceptable trade-off between conservatism and computa-
tional complexity is a topic worth pursuing.
The presented results hold for transmission networks under dc
the standard deviations, for all generation buses; one is computed power flow assumptions. It is natural to ask whether the method
by hopf, the other is computed by cc-opf. As can be seen from can be extended to the more general case of ac power flow. In
Fig. 5 the numerical values are close. In terms of the 1-norm of the fact, [19,37] studied ac-opf under uncertainty using polynomial
vectors of standard deviations, the power fluctuation from cc-opf chaos and showed that pce provides policies of higher order than
is marginally bigger, namely ∥σ CC-OPF ∥1 = 1.7035 = ∥σ hOPF ∥1 + affine policies that satisfy the ac power flow equations numerically;
0.0030. A closer look at Fig. 5 reveals that the standard deviation however no rigorous proof is provided. It remains an open research
from cc-opf appears to be slightly larger for all buses except for question what kinds of policies generally satisfy ac power flow.
bus 48, where it is significantly lower, ∥σ hOPF − σ CC-OPF ∥∞ = Finally, in applications the data-driven computation of the pce
hOPF
|σ48 −σ48CC-OPF
| = 0.0090. The generator at bus 48 is connected to of the uncertain demand/feed-in may itself be challenging and
line 394 for which the line flow limit becomes binding. Compared subject to uncertainty about the uncertainty. Thus, distributionally
to the hopf solution, cc-opf is more conservative and reduces the robust pce formulations are of interest in the future.
variability of the power injections at bus 48.
To conclude, cc-opf finds by means of a single optimization Acknowledgments
problem optimal policies that satisfy the power balance strictly
and that satisfy the inequalities in a chance constraint sense. The The authors gratefully acknowledge funding from the Helmholtz
statistics of the policies from cc-opf are consistent with the results Association, specifically the programme ‘‘Storage and Cross-Linked
from the best-informed hopf solution, yet obtained at lower com- Infrastructures,’’ and ‘‘Energy System 2050 – A Contribution of the
putation times. Research Field Energy.’’ Finally, all authors would like to express
their gratitude towards Lutz Gröll from the Institute for Automa-
6. Conclusions and outlook tion and Applied Informatics at Karlsruhe Institute of Technology.
The numerous insightful discussions with him helped to improve
Given the continuously increasing share of renewables, the the manuscript.
structured consideration of uncertainties for optimal power
flow problems is paramount. Existing approaches to chance- References
constrained opf under dc conditions often employ affine feedback
[1] Z. Liu, L. van der Sluis, W. Winter, H. Paeschke, R. Becker, C. Weber, J. Eickmann,
policies to account for fluctuations modeled via multivariate Gaus- C. Schroeders, F. Oldewurtel, L. Roald, T. Krause, M. Rogge, P. Gilsdorf, P.
sian uncertainties. Starting from a chance-constrained optimal Wajant, Challenges, experiences and possible solutions in transmission system
power flow problem written in terms of random variables, this operation with large wind integration, in: 11th International Workshop on
paper shows that the importance of affine policies is not related Large-Scale Integration of Wind Power into Power Systems, 11th International
Workshop on Large-Scale Integration of Wind Power into Power Systems,
to the uncertainty model, e.g. Gaussian, but to the power balance
2012.
constraint that maps random variables to random variables. In [2] S. Frank, I. Steponavice, S. Rebennack, Optimal power flow: a bibliographic
addition, the optimal affine policies are random variables whose survey i, Energy Syst. 3 (3) (2012) 221–258.
realizations satisfy the power balance, and satisfy the inequal- [3] L. Roald, F. Oldewurtel, B. Van Parys, G. Andersson, Security constrained
ity constraints in the chance constraint sense. The present paper optimal power flow with distributionally robust chance constraints, ArXiv e-
prints1508.06061.
proposes a three-step methodology to solving cc-opf problems,
[4] D. Bienstock, M. Chertkov, S. Harnett, Chance-constrained optimal power flow:
namely formulation, parameterization, optimization. When for- Risk-aware network control under uncertainty, SIAM Rev. 56 (3) (2014) 461–
mulating cc-opf problems, it is argued that the choice of the cost 495.
function and chance constraint formulation are modeling choices, [5] L. Roald, F. Oldewurtel, T. Krause, G. Andersson, Analytical reformulation of
hence user-specific. In any case, an affine parameterization of the security constrained optimal power flow with probabilistic constraints, in:
2013 IEEE Grenoble Conference, 2013, pp. 1–6.
optimal policy is required due to power balance. The resulting
[6] H. Zhang, P. Li, Chance constrained programming for optimal power flow under
parameterized optimization problem can be solved tractably and uncertainty, IEEE Trans. Power Syst. 26 (4) (2011) 2417–2424.
efficiently using polynomial chaos expansion, which results for [7] H. Zhang, P. Li, Application of sparse-grid technique to chance constrained
example in a second-order cone program that scales well with the optimal power flow, IET Gener. Transm. Distrib. 7 (5) (2013) 491–499.
number of uncertainties. The proposed methodology is applied to [8] M. Vrakopoulou, K. Margellos, J. Lygeros, G. Andersson, Probabilistic guaran-
tees for the N-1 security of systems with wind power generation, in: Proceed-
a tutorial 3-bus example both for a standard and non-standard ings of PMAPS, 2012, pp. 858–863.
uncertainty model, and to the ieee 300-bus system. [9] M. Vrakopoulou, K. Margellos, J. Lygeros, G. Andersson, A probabilistic frame-
The present paper has not investigated the relation between work for reserve scheduling and N-1 security assessment of systems with high
different problem formulations whatsoever. For example, what can wind power penetration, IEEE Trans. Power Syst. 28 (4) (2013) 3885–3896.
242 T. Mühlpfordt et al. / Sustainable Energy, Grids and Networks 16 (2018) 231–242
[10] M. Vrakopoulou, B. Li, J. Mathieu, Chance constrained reserve scheduling using [24] J. Warrington, P. Goulart, S. Mariéthoz, M. Morari, Policy-based reserves for
uncertain controllable loads part I: Formulation and scenario-based analysis, power systems, IEEE Trans. Power Syst. 28 (4) (2013) 4427–4437.
IEEE Trans. Smart Grid (2017) 1–1. [25] B. Li, M. Vrakopoulou, J. Mathieu, Chance constrained reserve scheduling
[11] M. Campi, G. Calafiore, Decision making in an uncertain environment: the using uncertain controllable loads part II: Analytical reformulation, IEEE Trans.
scenario-based optimization approach, Working paper, Universita di Brescia,
Smart Grid (2017) 1–1.
Brescia, Italy.
[26] E. Dall’Anese, K. Baker, T. Summers, Chance-constrained AC optimal power
[12] L. Roald, T. Krause, G. Andersson, Integrated balancing and congestion man-
agement under forecast uncertainty, in: 2016 IEEE International Energy Con- flow for distribution systems with renewables, IEEE Trans. Power Syst. 32 (5)
ference (ENERGYCON), 2016, pp. 1–6. (2017) 3427–3438.
[13] Y. Atwa, E. El-Saadany, M. Salama, R. Seethapathy, Optimal renewable re- [27] E. Stai, L. Reyes-Chamorro, F. Sossan, J. Le Boudec, M. Paolone, Dispatching
sources mix for distribution system energy loss minimization, IEEE Trans. stochastic heterogeneous resources accounting for grid and battery losses,
Power Syst. 25 (1) (2010) 360–370. IEEE Trans. Smart Grid (2017) 1–1.
[14] E. Carpaneto, G. Chicco, Probabilistic characterisation of the aggregated resi- [28] T. Sullivan, Introduction to Uncertainty Quantification, Vol. 63, first ed.,
dential load patterns, IET Gener. Transm. Distrib. 2 (2008) 373–382. Springer International Publishing, Switzerland, 2015.
[15] T. Soubdhan, R. Emilion, R. Calif, Classification of daily solar radiation distri- [29] P. Kall, Stochastic programming, European J. Oper. Res. 10 (2) (1982) 125–130.
butions using a mixture of dirichlet distributions, Sol. Energy 83 (7) (2009)
[30] G. Calafiore, L.E. Ghaoui, On distributionally robust chance-constrained linear
1056–1063.
programs, J. Optim. Theory Appl. 130 (1) (2006) 1–22.
[16] N. Wiener, The homogeneous chaos, Amer. J. Math. (1938) 897–936.
[17] A. Monti, F. Ponci, T. Lovett, A polynomial chaos theory approach to the control [31] A. Wood, B. Wollenberg, Power Generation, Operation, and Control, second ed.,
design of a power converter, in: 2004 IEEE 35th Annual Power Electronics John Wiley & Sons, Inc., 1996.
Specialists Conference (IEEE Cat. 04CH37551), Vol. 6, 2004, pp. 4809–4813. [32] L. Gan, S.H. Low, An online gradient algorithm for optimal power flow on radial
[18] A. Smith, A. Monti, F. Ponci, Indirect measurements via a polynomial chaos networks, IEEE J. Sel. Areas Commun. 34 (3) (2016) 625–638.
observer, IEEE Trans. Instrum. Meas. 56 (3) (2007) 743–752. [33] L. Roald, S. Misra, M. Chertkov, G. Andersson, Optimal power flow with
[19] T. Mühlpfordt, T. Faulwasser, V. Hagenmeyer, Solving stochastic AC power flow weighted chance constraints and general policies for generation control, in:
via polynomial chaos expansion, in: IEEE International Conference on Control 54th IEEE Conference on Decision and Control (CDC), 2015, pp. 6927–6933.
Applications, 2016, pp. 70–76.
[34] I. Popescu, A semidefinite programming approach to optimal-moment bounds
[20] T. Mühlpfordt, T. Faulwasser, L. Roald, V. Hagenmeyer, Solving optimal power
for convex classes of distributions, Math. Oper. Res. 30 (3) (2005) 632–657.
flow with non-Gaussian uncertainties via polynomial chaos expansion, in:
56th IEEE Conference on Decision and Control (CDC), 2017, pp. 4490–4496. [35] D. Xiu, Numerical Methods for Stochastic Computations, Princeton University
[21] J. Tang, F. Ni, F. Ponci, A. Monti, Dimension-adaptive sparse grid interpolation Press, Princeton, New Jersey, 2010.
for uncertainty quantification in modern power systems: Probabilistic power [36] T. Mühlpfordt, V. Hagenmeyer, T. Faulwasser, The price of uncertainty:
flow, IEEE Trans. Power Syst. 31 (2) (2016) 907–919. Chance-constrained opf vs. in-hindsight OPF, in: 2018 Power Systems Com-
[22] F. Ni, P.H. Nguyen, J.F.G. Cobben, Basis-adaptive sparse polynomial chaos putation Conference, 2018.
expansion for probabilistic power flow, IEEE Trans. Power Syst. 32 (1) (2017) [37] A. Engelmann, T. Mühlpfordt, Y. Jiang, B. Houska, T. Faulwasser, Distributed
694–704. stochastic AC optimal power flow based on polynomial chaos expansion, in:
[23] R.R. Appino, T. Mühlpfordt, T. Faulwasser, V. Hagenmeyer, On solving prob- American Control Conference (ACC), 2018, pp. 6188–6193.
abilistic load flow for radial grids using polynomial chaos, in: 2017 IEEE
Manchester PowerTech, 2017, pp. 1–6.