Problems Samples & Perspectives on Cyber-Physical Energy Networks
ETH D-INFK Seminar @ Oct 31 2016
Florian D¨
- rfler
Problems Samples & Perspectives on Cyber-Physical Energy - - PowerPoint PPT Presentation
Problems Samples & Perspectives on Cyber-Physical Energy Networks ETH D-INFK Seminar @ Oct 31 2016 Florian D orfler @ETH for Complex Systems Control system control Simple control systems are well understood.
ETH D-INFK Seminar @ Oct 31 2016
“Simple” control systems are well understood. “Complexity” can enter in many ways . . .
2 / 43
. . .
physical interaction local subsystems and control sensing & comm.
2 10 30 25 8 37 29 9 3 8 23 7 36 22 6 35 19 4 33 20 5 34 10 3 3 2 6 2 31 1 8 7 5 4 3 18 17 26 27 28 24 21 16 15 14 13 12 11 1 39 9local system local control local system local control
Such distributed systems include large-scale physical systems, engineered multi-agent systems, & their interconnection in cyber-physical systems.
3 / 43
robotic networks decision making social networks sensor networks self-organization pervasive computing traffic networks smart power grids
4 / 43
purpose of electric power grid: generate/transmit/distribute conventional operation: hierarchical & centralized things are changing . . .
IBM’s smart grid vision 5 / 43
Source: Renewables 2014 Global Status Report
6 / 43
synchronous generator
(ensure stable/robust op)
power electronics
(injects mostly garbage)
distributed generation
(not always coordinated)
transmission! distribution! generation!
scaling
(no sync through physics)
The results . . .
based ¡Schedule). ¡These ¡“market ¡induced” ¡effects ¡
low-inertia, over-voltages, etc.
7 / 43
1 controllable fossil fuel sources
⇒ stochastic renewable sources
2 generation follows load
⇒ controllable load follows generation
3 monopolistic energy markets
⇒ deregulated energy markets
4 . . . many technological advances 8 / 43
www.offthegridnews.com
Public policy & environmental concerns:
1 increasing renewables & deregulation 2 more decentralization & uncertainty
⇒ increasing volatility & complexity Rapid technological and scientific advances:
1 re-instrumentation: sensors & actuators 2 complex & cyber-physical systems
⇒ cyber-coordination layer for smarter grids
9 / 43
. . . on scientific end
dynamics
stochastic disturbances large-scale & nonlinear low-inertia issues
nonlinear & relaxations massive computation stochastic programs
control
distributed & decentralized power electronics
economics
market mechanisms
robust & stability certificates renewable modeling locational marginal prizing bidding & pooling remote real-time data networked
data-driven ancillary services prosumers load control distributed demand response complex networks mixed integer
estimation privacy uncertainty CPS load models
& driven by very rapid technological advances
◮ power electronics ◮ battery storage systems ◮ plug-in electric vehicles ◮ real-time & wide-area phasor measurements ◮ communication ◮ wind turbine, PV, & solar manufacturing ◮ microgrid deployment ◮ energy-efficient buildings ◮ smart meters & household appliances ◮ . . .
10 / 43
coordination of distributed generation decentralized & optimal wide-area control
flow optimization
11 / 43
Introduction Basics of Power System Physics & Operation Coordination of Distributed Generation Decentralized Wide-Area Control Online Feedback Optimization Conclusions
1 AC circuit with harmonic
waveforms Ei cos(θi + ωt)
2 active and reactive power flows 3 loads demanding constant
active and reactive power
4 sources: generators & inverters
inject power akin to physics/control
5 coupling via Kirchhoff & Ohm
Gij + i Bij i j Pi + i Qi i mech. torque electr. torque
injection = power flows ◮ active power: Pi =
◮ reactive power: Qi = −
j BijEiEj cos(θi − θj) + GijEiEj sin(θi − θj)
12 / 43
idealized power balance: generation = load + losses (does not hold due to unknown loads, renewables, & losses)
Hz
generation loads + losses 50 49 51 52 48
sync’d frequency ωsync ∼ imbalance droop control: control power injection ∝ frequency deviation Pi = Pref
i
− Di ˙ θi stabilizes grid & synchronizes frequencies: ˙ θi(t → ∞) = ωsync . . . but ωsync is wrong frequency
ωsync
˙ θ
P ref
1
P ref
2 13 / 43
Introduction Basics of Power System Physics & Operation Coordination of Distributed Generation Decentralized Wide-Area Control Online Feedback Optimization Conclusions
Power System
goal: optimize operation architecture: centralized & forecast strategy: scheduling (OPF)
goal: maintain operating point architecture: centralized strategy: I-control (AGC)
goal: stabilization & load sharing architecture: decentralized strategy: P-control (droop)
Is this top-to-bottom architecture still appropriate in tomorrow’s grid?
14 / 43
flat hierarchy, distributed, no time-scale separations, & model-free
source # 1
… … …
source # n source # 2
Secondary Control Tertiary Control Primary Control
Transceiver
Secondary Control Tertiary Control Primary Control
Transceiver
Secondary Control Tertiary Control Primary Control
Transceiver
15 / 43
as offline resource allocation & scheduling problem
16 / 43
as offline resource allocation & scheduling problem
minimize {cost of generation, losses, . . . } subject to physical constraints: equality constraints: power balance equations
inequality constraints: flow/injection/voltage constraints logic constraints: commit generators yes/no . . .
16 / 43
dispatch generation: minui ∈ Ui
subject to
i
+ ui = 0
1 primal feasibility = imbalance:
i Pref i
+ ui = 0 ∼ ωsync (measurable)
2 identical marginal costs at optimality: J′
i (ui) = J′ j(uj) ∀i, j (consensus)
simple distributed optimization algorithm:
1 dual update on violation:
λ+ = λ + 1
k · ωsync
2 consensus on xi = J′
i (ui):
x+
i
= xi +
⇒ altogether in real-time: ki ˙ λi = ˙ θi
−
i (ui) − J′ i (ui)
⇒ inject ui(t) = λi(t)
17 / 43
power system physics: power flow & devices
θi =P ref
i
− Pi − λi λi ˙ θi
trade off power injections & frequency
˙ θi Pi Pi =
Qi = −
ki ˙ λi = ˙ θi −
aij (J′
i(ui) − J′ i(ui))
tertiary control: integral errors & diffusive averaging
J′
i(ui)
. . .
J′
i(ui)
. . .
J′
k(uk)
J′
j(uj) 18 / 43
similar control strategies for voltage magnitude
power system physics: power flow & devices
θi =P ref
i
− Pi − λi τi ˙ Ei =−CiEi(Ei − E∗
i ) − Qi − ei
λi ˙ θi
trade off power injections & frequency
Qi Ei ˙ θi Pi ei Qi Pi =
Qi = −
ki ˙ λi = ˙ θi −
aij (J′
i(ui) − J′ i(ui))
κi ˙ ei = −
aij ·
Qi − Qj Qj
tertiary control: integral errors & diffusive averaging
J′
i(ui)
Qi/Qi
. . . . . .
J′
i(ui)
. . . . . .
J′
k(uk)
Qk/Qk Qj/Qj J′
j(uj)
Qj/Qj
18 / 43
in collaboration with Q. Shafiee & J.M. Guerrero @ Aalborg University
! "! #! $! %! &! "!! "&! #!! #&! $!! $&! %!! %&! &!!
Reactive Power Injections Time (s) Power (VAR)
! "! #! $! %! &! #!! %!! '!! (!! "!!! "#!!
A ctive Power Injection Time (s) Power (W)
! "! #! $! %! &! $!! $!& $"! $"& $#! $#& $$!
Voltage Magnitudes Time (s) Voltage (V)
! "! #! $! %! &! %'(& %'() %'(* %'(+ %'(' &! &!("
Voltage Frequency Time (s) Frequency (Hz)
DC Source LCL filter DC Source LCL filter DC Source LCL filter 4DG DC Source LCL filter
1DG
2DG
3DG Load 1 Load 2
12Z
23Z
34Z
1Z
2Z
t = 22s: load # 2 unplugged t = 36s: load # 2 plugged back
$$ $$ $ $
19 / 43
1 simple local control: proportional & integral feedback 2 distributed optimization via average consensus & diffusion 3 joint CPS stability & optimality certificates via passivity & Lyapunov
interesting extensions not shown today:
4 robustness to model uncertainties & CPS/comm issues 5 more general energy management tasks & constraints 6 transactive control: interaction with energy markets
20 / 43
Introduction Basics of Power System Physics & Operation Coordination of Distributed Generation Decentralized Wide-Area Control Online Feedback Optimization Conclusions
instability of the 0.25 Hz mode in the Western interconnected system
10 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 South Arizona SoCal NoCal PacNW Canada North Montana Utah
Source: http://certs.lbl.gov
0.25 Hz
21 / 43
0.5Hz 0.7Hz 0.22Hz 0.15Hz 0.33Hz 0.48Hz 0.8Hz 0.26Hz
22 / 43
0.5Hz
Myles et al., 1988
2/3/1982
Ding et al., 2007
0.7Hz
8/5/2005
0.26Hz
short circuit disconnectiondisconnection
5/29/2007 4/1/2007
AlAli et al., 2007
0.22Hz 0.15Hz
!"# $%# $!# &#' (#' "#" )*+ ,"#"( ,"#"$! !"#$%&'()' "#$%&'(&%)'*+,-..)$-/#! )0$%&! 1/2%&! 1.)#$! /3$)4%! -#! !!0!5678! $!5+8!
5/1/2005
! !
9/18/2010
AlAli et al., 2011
m d da g w a
49.94 49.96 49.98 50 50.02 50.04 50.06 50.08 50.1 09:22:00 09:22:30 09:23:00 09:23:30 09:24:00 09:24:30 09:25:00 09:25:30 09:26:00 09:26:30 09:27:00 09:27:30 09:28:00 f [Hz]Larrson et al., 2012 …
9/18/2010
lso due to transient events.
Frequency deviation (mHz) 21 78 24 7410/25/2011
0.33Hz 0.48Hz
Uhlen et al., 2008
20 40 60 80 100 120 140 160 1808/14/2007
15!Wilson et al., 2008
0.8Hz
xx/xx/2007
22 / 43
conventional control
blue layer: interconnected generators fully decentralized control implemented locally
23 / 43
wide-area control (WAC)
blue layer: interconnected generators fully decentralized control implemented locally distributed wide-area control using remote signals
24 / 43
power network dynamics
generator transmission line wide-area measurements (e.g. PMUs) remote control loops + + + channel noise local control loops
...
system noise FACTS
PSS & AVR
communication & processing
wide-area controller
1 performance objective
(e.g., critical modes) ?
2 signal selection
(sensors & actuators) ?
3 selection of control
channels (I/O pairs) ?
4 decentralized (structured)
control design ? Today:
1 performance metric: integral-quadratic performance index 2 simultaneously optimize control performance & architecture
⇒ fully decentralized & nearly optimal control architecture
25 / 43
model: linearized ODE dynamics ˙ x(t) = Ax(t) + Bu(t)
minimize J(K) ∞ x(t)TQx(t) + u(t)TRu(t) dt subject to linear dynamics: ˙ x(t) = Ax(t) + Bu(t), linear control: u(t) = −Kx(t). (no structural constraints on K)
! " #
26 / 43
[Lin, Fardad, & Jovanovi´ c ’13]
simultaneously optimize performance & architecture
minimize ∞ x(t)TQx(t) + u(t)TRu(t) dt + γ · card(K) subject to linear dynamics: ˙ x(t) = Ax(t) + Bu(t), linear control: u(t) = −Kx(t). ⇒ for γ = 0: standard optimal control (typically not sparse) ⇒ for γ > 0: sparsity is promoted (problem is combinatorial) ⇒ card(K) convexified by weighted ℓ1-norm
27 / 43
K(γ) = arg min
K
model features (242 states):
detailed generator models tuned local controllers ⇒ linearized model for design: ˙ x(t) = Ax(t) + Bu(t)
dominant inter-area modes in power spectral density
15 2 3 5 12 13 14 16 7 6 9 8 1 11 10 4 7 23 6 22 4 5 3 20 19 68 21 24 37 27 26 28 29 9 62 65 66 67 63 64 52 55 2 58 57 56 59 60 25 8 1 54 53 47 30 61 36 17 13 12 11 32 33 34 35 45 44 43 39 51 50 18 16 38 10 31 46 49 48 40 41 14 15 42
NETS NYPS AREA 3 AREA 4 AREA 5 29 / 43
γ = 0, card (K) = 1764 γ = 10−4, card (K) = 1746 γ = 0.00015, card (K) = 1603
30 / 43
γ = 0.00023, card (K) = 1475 γ = 0.00031, card (K) = 1353 γ = 0.00041, card (K) = 1231
30 / 43
γ = 0.00047, card (K) = 1106 γ = 0.00054, card (K) = 862 γ = 0.00063, card (K) = 733
30 / 43
γ = 0.00095, card (K) = 609 γ = 0.0011, card (K) = 484 γ = 0.0015, card (K) = 353
30 / 43
γ = 0.0060, card (K) = 191 γ = 0.0655, card (K) = 109 γ = 0.1, card (K) = 107
30 / 43
(J − Jc) /Jc card (K) /card (Kc)
10−4 10−3 10−2 10−1 0.5 1 1.5 2 2.5 3
γ percent
10−4 10−3 10−2 10−1 20 40 60 80 100
γ percent relative performance loss relative sparsity γ = 0.1 ⇒ 2.6 % relative performance loss 6.1 % non-zero elements in K ⇒ fully decentralized control is nearly optimal !
31 / 43
32 / 43
1 algebraic formulation via Gramian and Lyapunov equation 2 non-convexity in K: use homotopy path in γ & ADMM 3 element/block/row-sparsity by appropriate regularizations
angles remaining states element-wise penalty block-wise penalty row-wise penalty
important open problem: entire model is unknown ⇒ data-driven?
33 / 43
Introduction Basics of Power System Physics & Operation Coordination of Distributed Generation Decentralized Wide-Area Control Online Feedback Optimization Conclusions
⇒
real-time & adaptive power flow routing?
34 / 43
grid sensing grid actuation
Power distribution network
plant state x
power demands power generation
OPF
grid sensing grid actuation
Power distribution network
plant state x
power demands power generation
FEED BACK input disturbance
35 / 43
heavily nonlinear physics give rise to non-convex decision making tasks grid sensing grid actuation
Power distribution network
plant state x
power demands power generation
FEED BACK input disturbance
Recall the governing physical equations:
◮ active power: Pi =
◮ reactive power: Qi = −
j BijEiEj cos(θi − θj) + GijEiEj sin(θi − θj)
36 / 43
The power flow manifold
grid equations can be written implicitly as F(x) = 0 set of all possible power flow solutions: P := {x | F(x) = 0} P is a regular submanifold embedded in R4n locally diffeomorphic to tangent plane (sparse linearization)
1 0.5 p2
0.5 q2 1 1.2 1 0.8 0.6 0.4 v 2
node 2 node 1
v1 = 1, θ1 = 0 y = 0.4 − 0.8j v2, θ2 p2, q2 p1, q1
v2
1 g − v1v2 cos(θ1 − θ2)g − v1v2 sin(θ1 − θ2)b = p1
−v2
1 b + v1v2 cos(θ1 − θ2)b − v1v2 sin(θ1 − θ2)g = q1
v2
2 g − v1v2 cos(θ2 − θ1)g − v1v2 sin(θ2 − θ1)b = p2
−v2
2 b + v1v2 cos(θ2 − θ1)b − v1v2 sin(θ2 − θ1)g = q2 37 / 43
minimize J(x) subject to x ∈ P − → physically feasible input region g(x) ≤ 0 − → operational constraints first-order method in smooth & unconstrained case: follow the gradient “projected” on the manifold
implementation, including constraints, & outsource retraction to the physics
power flow manifold linear approximant
x(t) Gradient of cost function Projected gradient x(t + 1) Retraction 38 / 43
1 output: measure grid state 2 compute: project gradient on
tangent plane & constraints
3 input: actuate subset of
controllable states (injections) ≈ partial projected gradient feedback
Feedback disturbance input plant
Certificates: simple ideas work best! ⇒ non-actuated states follow, physics enforce retraction, & constraints are enforced ⇒ convergence to strict minima ⇒ cheap & distributable computation ⇒ scheme is robust & adaptive ⇒ appears to work also with inexact linearizations & saddle-point flows
39 / 43
$$$ $$ $
30 MW
scenario: generator # 1 ($$$) connects to larger utility grid generator #2 ($$) is back-up source generator #3 ($) is free solar source time-varying & volatile profiles for loads & solar ⇒ curtailment & saturation
40 / 43
41 / 43
1 convergence analysis of
projected dynamical systems on manifolds
2 nonlinear optimization
conditions & algorithms
3 feedback control of
differential-algebraic & nonlinear systems
algorithms, CPS issues, logic, & complex specifications
42 / 43
Introduction Basics of Power System Physics & Operation Coordination of Distributed Generation Decentralized Wide-Area Control Online Feedback Optimization Conclusions
Summary: energy systems & power grid are a timely & challenging application three representative problems combining methodologies from control ∪ optimization ∪ distributed algorithms ∪ CPS issues many other rich problems at the intersection with econ & technology Opportunities for research of interest to D-INFK: in large-scale infrastructure networks, typically no exact & global model is available ⇒ data-driven & learning-based approaches more complex specifications than mere stability & convergence many open CPS & algorithmic issues in this problem domain ⇒ but results must come with stability, robustness, & safety certificates
43 / 43