Feedback Optimization on the Power Flow Manifold Institut für Automation und angewandte Informatik (IAI) Karlsruhe Institute of Technology (KIT)
Florian Dörfler
Automatic Control Laboratory, ETH Zürich
March 26 - 29, 2018 1
Feedback Optimization on the Power Flow Manifold Institut fr - - PowerPoint PPT Presentation
Feedback Optimization on the Power Flow Manifold Institut fr Automation und angewandte Informatik (IAI) Karlsruhe Institute of Technology (KIT) Florian Drfler Automatic Control Laboratory, ETH Zrich March 26 - 29, 2018 1
Automatic Control Laboratory, ETH Zürich
March 26 - 29, 2018 1
2
transmission grid distribution grid
Traditional Power Generation
3
– poor short-range prediction & correlations – fluctuations on all time scales (low inertia)
– conventional and renewable sources – congestion and under-/over-voltage
– large peak (power) & total (energy) demand – flexible but spatio-temporal patterns
– extremely fast actuation – modular & flexible control
– inexpensive reliable communication – increasingly ubiquitous sensing
single PV plant
power time of day time of day
single residential load profile
power
41GW 75%
Germany 17 August 2014
wind solar hydro biomass Electric Vehicle Fast charging
120KW Tesla supercharger 4KW Domestic consumer
4
Controller System r u y
Controller System r + u y −
Optimization Controller System r + u y −
5
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 −
6
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]
7
8
Optimization Controller System r + u y −
u(x) ∈ argmin T
0 ℓ(x, u) dt + φ(x(T), u(T))
s.t. dynamics ˙ x = h(x, u) s.t. constraints x ∈ X and u ∈ U System u x disturbance δ
9
u(x) ∈ argmin T
0 ℓ(x, u) dt + φ(x(T), u(T))
s.t. dynamics ˙ x = h(x, u) s.t. constraints x ∈ X and u ∈ U System u x disturbance δ
feedback control:
algorithm, e.g., u+ = Proj ∇(. . . ) physical plant: steady-state power system h(x, u, δ) = 0 u actuation x real-time state measurements
constraints disturbance δ
10
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
11
12
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)
13
[Hiskens, 2001]
Ohm’s Law Current Law AC power AC power flow equations
(all variables and parameters are -valued) [Molzahn, 2016] 14
e.g., losses, generation
AC power flow
feedback control:
algorithm, e.g., u+ = Proj ∇(. . . ) physical plant: steady-state power system h(x, u, δ) = 0 u actuation x real-time state measurements
constraints disturbance δ
15
16
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 500 1,000 1,500 Time [hrs] Generation cost Feedback OPF Optimal cost
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
17
G1 G2 C1 C3 C2 W S Generator Synchronous Condensor Solar Wind
G C S W
feedback control:
algorithm, e.g., u+ = Proj ∇(. . . ) physical plant: steady-state power system h(x, u, δ) = 0 u actuation x real-time state measurements
constraints disturbance δ
gradient controller: saturation of generation constraints soft penalty for
constraints no automatic re-dispatch feedback optimization model uncertainty feasible ? f − f ∗ v − v∗ feasible ? f − f ∗ 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
18
19
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
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
21
→ Matlab/Octave code @ https://github.com/saveriob/1ACPF
22
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
23
24
∂x ⊤
(degree of freedom)
linear approximant
x(t) Gradient of cost function Projected gradient ˙ x
25
→ Hauswirth, Bolognani, Hug, & Dörfler (2018) “Generic Existence of Unique Lagrange Multipliers in AC Optimal Power Flow”
v∈T>
x K
x K ⊂ TxM is inward tangent cone
26
2 = 1 , x1 ≤
→ Hauswirth, Bolognani, Hug, & Dörfler (2016) “Projected gradient descent on Riemanniann manifolds with applications to online power system optimization”
27
power flow manifold disconnected regions cusps & corners (convex and/or inward)
→ Hauswirth, Bolognani, Hug, & Dörfler (2018) “Projected Dynamical Systems on Irregular, Non-Euclidean Domain for Nonlinear Optimization” → Hauswirth, Subotic, Bolognani, Hug, & Dörfler (2018) “Time-varying Projected Dynamical Systems with Applications to Feedback Optimization of Power Systems” 28
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, δ) actuate u x measure
29
manifold linear approximant
x(t) Gradient of cost function Projected gradient x(t + 1) Retraction
30
31
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
ΠK (x, −gradφ(x))1
system ˙ x1 = u 0 = h(x1, x2, δ) actuate u x measure
32
feedback
ΠK (x, −gradφ(x))1
system ˙ x1 = u 0 = h(x1, x2, δt) u x U δt
33
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
34
G1 G2 C1 C3 C2 W S Generator Synchronous Condensor Solar Wind
G C S W
(ground-truth solution of an ideal OPF with access to exact disturbance and without computation delay)
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
35
– 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
36
! " # $ % & & ' ( ' $ ) ' ( ' * '('%)+'(!'
' ( % % ) + ' ( * ' '(%%)+'(*'
' ( ' , ) + ' ( ! '('-)+'('*
[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
37
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
38
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)
39
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
40
41
Florian Dörfler
http://control.ee.ethz.ch/~floriand dorfler@ethz.ch
42