Real-Time Feedback Optimization
- f Power Systems
Florian Dörfler
Automatic Control Laboratory, ETH Zürich
1
Real-Time Feedback Optimization of Power Systems Florian Drfler - - PowerPoint PPT Presentation
Real-Time Feedback Optimization of Power Systems Florian Drfler Automatic Control Laboratory, ETH Zrich 1 Acknowledgements Adrian Hauswirth Saverio Bolognani Gabriela Hug 2 feedforward optimization vs. feedback control d estimate d
1
2
Optimization System d estimate u d y
Controller System r + u y d −
Optimization Controller System r + u y −
3
SC-OPF , market real-time
automated/manual services/re-dispatch low-level automatic controllers droop, AGC power system disturbance δt u x generation setpoints state estimation prediction (load, generation, downtimes) schedule
50 100 150 200 10 20 30 40 50 60 70 80 90 100 marginal costs in €/MWh Capacity in GW Renewables Nuclear energy Lignite Hard coal Natural gas Fuel oil [Cludius et al., 2014]
Frequency Control Power System 50Hz + u y frequency measurement −
4
1 588 2010 5 030 2011 7 160 2012 7 965 2013 8 453 2014 15 811 2015 Redispatch actions in the German transmission grid in hours [Bundesnetzagentur, Monitoringbericht 2016]
371.9 267.1 352.9 227.6 154.8
secondary frequency control reserves
104.2 67.4 156.1 106.0 50.2
tertiary frequency control reserves
27.0 68.3 33.0 26.7 32.6
reactive power
41.6 164.8 113.3 185.4 411.9
national & internat. redispatch
111.8 82.3 85.2 103.4 110.9
primary frequency control reserves Cost of ancillary services of German TSOs in mio. Euros
2011 2012 2013 2014 2015
[Bundesnetzagentur, Monitoringbericht 2016]
5
feedback
e.g., ˙ u = −∇φ(y, u) power system ˙ x = f(x, u, w) y = h(x, u, w) actuation u real-time state measurements y
constraints u ∈ U disturbance w
6
lots of related work: [Bolognani et al, 2015], [Dall’Anese and Simmonetto, 2016/2017], [Gan and Low, 2016], [Tang and Low, 2017], ...
A Survey of Distributed Optimization and Control Algorithms for Electric Power Systems
Daniel K. Molzahn,∗ Member, IEEE, Florian D¨
Steven H. Low,§ Fellow, IEEE, Sambuddha Chakrabarti,¶ Student Member, IEEE, Ross Baldick,¶ Fellow, IEEE, and Javad Lavaei,∗∗ Member, IEEE
7
8
9
y,u
H
R
ǫ
u B
D A −
T ∇y φ y C + x + + + + +
10
γ 2ℓH
LTI Lyapunov function
11
ω p
12
y,u
1 2 max{0, y − y}2 Ξ + 1 2 max{0, y − y}2 Ξ
13
50 100 150 200 250 300 2 4 6 Time [s] Power Generation (Gen 37) [p.u.] Setpoint Output 0.5 1 1.5 ·105 Generation cost [$/hr] Feedback Opt
−0.2 −0.1 0.1 0.2 Frequency Deviation from f0 [Hz] 50 100 150 200 250 300 1 2 3 4 Time [s] Line Power Flow Magnitudes [p.u.] 23→26 90→26 flow limit
14
−5 5 ·10−2 Frequency Deviation from f0 [Hz] System Frequency 1 1.2 1.4 ·105 Generation cost [$/hr] Feedback Opt
5 10 15 20 1 2 3 Time [s] Line Power Flow Magnitudes [p.u.] 23→26 90→26 flow limit
−2 2 4 Frequency Deviation from f0 [Hz] System Frequency 2 4 6 8 ·107 Generation cost [$/hr] Feedback Opt
5 10 15 20 2 4 Time [s] Line Power Flow Magnitudes [p.u.] 23→26 90→26 flow limit
15
[Jokic et al. 2009], [Zhao et al. 2013]
[Nelson et al. 2017], [Colombino et al. 2018]
→ Menta, Hauswirth, Bolognani, Hug & Dörfler (2018)
“Stability of Dynamic Feedback Optimization with Applications to Power Systems” 16
17
2 5 3 4 6 7 8 9 10 11 12 13
nodal voltage current injection power injections
line impedance line current power flow
Ohm’s Law Current Law AC power AC power flow equations
(all variables and parameters are -valued)
18
[Hiskens, 2001]
Ohm’s Law Current Law AC power AC power flow equations
(all variables and parameters are -valued) [Molzahn, 2016] 19
1.5 1 0.5 q2
1.5 1 0.5 p2
1.2 1 1.4 0.8 0.6 v 2
vdc idc m iI v LI CI GI RI τm θ, ω vf v if τe is Lθ M rf rs rs v iT LT C G Gq C v RT iI
→ Bolognani & Dörfler (2015)
“Fast power system analysis via implicit linearization of the power flow manifold”
→ Gross, Arghir, & Dörfler (2018)
“On the steady-state behavior of a nonlinear power system model” 20
minimize φ(P, Q, V ) subject to P G + jQG = P L + jQL + diag(V )Y ∗V ∗ P k ≤ P G
k ≤ P k, Qk ≤ QG k ≤ Qk
V k ≤ Vk ≤ V k |Pkl + jQkl| ≤ Skl
Real-time
physical, steady-state power system (AC power flow equations) PG = PL + ℜ{diag(V)Y ∗V ∗} QG = QL + ℑ{diag(V)Y ∗V ∗} Loads PL, QL generator setpoints state measurements
21
minimize φ(P, Q, V ) subject to P G + jQG = P L + jQL + diag(V )Y ∗V ∗ P k ≤ P G
k ≤ P k, Qk ≤ QG k ≤ Qk
V k ≤ Vk ≤ V k |Pkl + jQkl| ≤ Skl
v
w∈TxK||v − w||
22
50 100 150 200 250 300 5 10 Objective Value [$] real time cost global minimum 50 100 150 200 250 300 0.95 1 1.05 Bus voltages [p.u.] 50 100 150 200 250 300 iteration 1 2 Active power generation [MW] Slack bus Gen A Gen B
feedback
˙ u = ΠK (u, −gradφ(y, u))
system 0 = h(y, u) actuate u y measure
23
2 = 1 , x1 ≤
→ Hauswirth, Bolognani, Hug, & Dörfler (2016)
“Projected gradient descent on Riemanniann manifolds with applications to online power system optimization”
24
nonlinear power flow manifold disconnected regions cusps & corners (convex and/or inward)
→ Hauswirth, Bolognani, Hug, & Dörfler (2018)
“Projected Dynamical Systems on Irregular Non-Euclidean Domains for Nonlinear Optimization”
→ Hauswirth, Subotic, Bolognani, Hug, & Dörfler (2018)
“Time-varying Projected Dynamical Systems with Applications to Feedback Optimization of Power Systems” 25
26
g15 g11 g20 g19 g16 g17 g18 g2 g6 g7 g14 g13 g8 g12 g4 g5 g10 g3 g1 g9 4011 4012 1011 1012 1014 1013 1022 1021 2031
cs
4046 4043 4044 4032 4031 4022 4021 4071 4072 4041 1042 1045 1041 4063 4061 1043 1044 4047 4051 4045 4062 400 kV 220 kV 130 kV synchronous condenser CS
NORTH CENTRAL EQUIV. SOUTH
4042 2032 41 1 5 3 2 51 47 42 61 62 63 4 43 46 31 32 22 11 13 12 72 71
27
28
29
feedback
e.g., ˙ u = −∇φ(y, u) power system ˙ x = f(x, u, w) y = h(x, u, w) actuation u real-time state measurements y
constraints u ∈ U disturbance w
30
G1 G2 C1 C3 C2 W S Generator Synchronous Condensor Solar Wind
G C S W
2 4 6 8 10 12 14 16 18 20 22 24 100 200 300 400 Time [hrs] Aggregate Load & Available Renewable Power [MW] Load Solar Wind Time [hrs] 0.95 1 1.05 1.1 Bus voltages [p.u.] 0.5 1 Branch current magnitudes [p.u.] 0.9 2 4 6 8 10 12 14 16 18 20 22 24 50 100 150 200 Active power injection [MW] Gen1 Gen2 Solar Wind
31
disturbance & without computation delay)
(asymptotic optimality under wrong model)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 500 1,000 1,500 Time [hrs] Generation cost Feedback OPF Optimal cost
feedback optimization model uncertainty feasible ? φ − φ∗ v − v∗ feasible ? φ − φ∗ v − v∗ loads ±40% no 94.6 0.03 yes 0.0 0.0 line params ±20% yes 0.19 0.01 yes 0.01 0.003 2 line failures no
0.06 yes 0.19 0.007
32
33
34
Florian Dörfler
http://control.ee.ethz.ch/~floriand dorfler@ethz.ch
35
36
37
feedback
e.g., ˙ u = −∇φ(y, u) power system ˙ x = f(x, u, w) y = h(x, u, w) actuation u real-time state measurements y
constraints u ∈ U disturbance w
[Lessard et al., 2014], [Wilson et al., 2018]
[Bolognani et. al, 2015], [Cady et al., 2015], [Dall’Anese and Simmonetto, 2016/2017], [Gan and Low, 2016], [Tang and Low, 2017], ...
A Survey of Distributed Optimization and Control Algorithms for Electric Power Systems
Daniel K. Molzahn,∗ Member, IEEE, Florian D¨
Steven H. Low,§ Fellow, IEEE, Sambuddha Chakrabarti,¶ Student Member, IEEE, Ross Baldick,¶ Fellow, IEEE, and Javad Lavaei,∗∗ Member, IEEE
38
MPC Control u⋆ = arg minu T
0 f(y, u) dt + φ(y(T), u(T))
subject to dynamic model and constraints
System r u y d
Feedback Optimizer ˙ u = ΠU (−ǫ∇φ(y, u)) System u y d
39
40
v1 = 1, θ1 = 0 y = 0.4 − 0.8j v2, θ2 p2, q2 p1, q1
1 0.5 p2
0.5 q2 1 1.2 1 0.8 0.6 0.4 v 2
∂h(x) ∂x
x∗ (x − x∗) = 0
∂2h(x) ∂x2
1.5 1 0.5 q2
1.5 1 0.5 p2
1.2 1 1.4 0.8 0.6 v 2
41
→ Matlab/Octave code @ https://github.com/saveriob/1ACPF
42
2 1 !2
1.4 1.2 v 2 1 0.8 0.6 0.5
1 1.5 p2
power flow manifold linear coupled power flow DC power flow approximation (neglects PV coupling)
1.5 1 0.5 q2
2 1 p2 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4
v 2
power flow manifold linear approximation linear approximation in quadratic coordinates
43
44
∂x ⊤
(degree of freedom)
manifold linear approximant
x(t) Gradient of cost function Projected gradient ˙ x
45
→ Hauswirth, Bolognani, Hug, & Dörfler (2018)
“Generic Existence of Unique Lagrange Multipliers in AC Optimal Power Flow”
v∈TxK − grad φ(x) − vg
46
controlled generation
AC power flow manifold relating x1 & other variables
desired projected
gradient descent
where f(x) = ΠK (x, −gradφ(x))
feedback
ΠK (x, −gradφ(x))1
system ˙ x1 = u 0 = h(x1, x2, w) actuate u x measure
47
manifold linear approximant
x(t) Gradient of cost function Projected gradient x(t + 1) Retraction
48
49
– optimizer x⋆ = arg minx∈K φ(x) can be in different disconnected component → no feasible trajectory exists: x0 → x⋆ must violate constraints
→ continuous closed-loop trajectory x(t) guaranteed to be feasible → convergence of x(t) to a local minimum is guaranteed
50
! " # $ % & & ' ( ' $ ) ' ( ' * ' ( ' % ) + ' ( ! '
'(%%)+'(*' '(%%)+'(*'
' ( ' , ) + ' ( ! '('-)+'('*
[Molzahn, 2016]
[0s,2000s]: separate feasible regions [2000s,3000s]: loosen limits on reactive power Q2 → regions merge [4000s,5000s]: tighten limits on Q2 → vanishing feasible region
1000 2000 3000 4000 5000 800 1000 1200 Objective Value [$]
Feedback Feed-forward
1000 2000 3000 4000 5000 0.95 1 1.05 Voltage Levels [p.u.] 1000 2000 3000 4000 5000 100 200 300 Active Power Generation P [MW]
Gen1 Gen2
1000 2000 3000 4000 5000 100 200 Reactive Power Generation Q [MVAR]
Gen1 Gen2 Q5min
51
10 20 30 40 50 60 70 80 90 100 Time [s] 0.5 1 1.5 2 Power [p.u.]
Active Power Generation
10 20 30 40 50 60 70 80 90 100 Time [s]
0.05 0.1 deviation [Hz]
Frequency
10 20 30 40 50 60 70 80 90 100 Time [s] 3000 4000 5000 6000 7000 Cost [$] Generation Cost Aggregated Reference OPF 10 20 30 40 50 60 70 80 90 100 Time [s]
0.1 0.2 0.3 Power [p.u.]
Reactive Power Generation
10 20 30 40 50 60 70 80 90 100 Time [s] 0.95 1 1.05 1.1 Voltage [p.u.]
Bus voltages
52
25 50 75 100 Time [s] 0.5 1 1.5 2 Power [p.u.]
Active Power Generation Time [s]
1.2 1.4 1.6 Power [MW]
Active Power Generation (zoomed)
25 50 75 100 Time [s]
0.1 0.2 deviation [Hz]
Frequency Time [s]
0.05 deviation [Hz]
Frequency (zoomed)
53
G1 G2 C1 C3 C2 W S Generator Synchronous Condensor Solar Wind
G C S W
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 0.2 0.4 0.6 T ime [hrs] A ctive power injection [M W ] G en 1 G en 2 G en 3 Solar W ind 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 −0.1 −5 · 10−2 5 · 10−2 0.1 T ime [hrs] F requency deviation [Hz] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 200 400 Time [hrs] Generation cost [$/hr] reference AC OPF Feedback OPF
54