optimal demand response - uc santa barbara

39
Optimal Demand Response Libin Jiang Steven Low Computing + Math Sciences Electrical Engineering Caltech June 2011

Upload: others

Post on 09-May-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Optimal Demand Response - UC Santa Barbara

Optimal Demand Response

Libin Jiang Steven Low

Computing + Math Sciences Electrical Engineering

Caltech

June 2011

Page 2: Optimal Demand Response - UC Santa Barbara

Outline

o Motivation

o Demand response model

o Some results

Page 3: Optimal Demand Response - UC Santa Barbara

Source: M. Jacobson, 2011

Wind power over land (outside Antartica): 70 – 170 TW

Solar power over land: 340 TW

World power demand: 16 TW

Page 4: Optimal Demand Response - UC Santa Barbara

Global energy demand (16 TW)

Global electricity demand (2.2 TW)

Why renewable integration?

Global wind power potential (72 TW)

Global installed wind capacity

(128 GW)

Source: Cristina Archer, 2010

Page 5: Optimal Demand Response - UC Santa Barbara

US electricity flow 2009

Source: EIA Annual Energy Review 2009

Conversion loss: 63%

quadrillion Btu

Plant use: 2% T&D losses: 2.6%

End use: 33%

Gross gen: 37%

Fossil : 67%

Nuclear: 22%

Renewable: 11%

US total energy use: 94.6 quads For electricity gen: 41%

Page 6: Optimal Demand Response - UC Santa Barbara

Renewables are exploding o  Renewables in 2009

n  26% of global electricity capacity n  18% of global electricity generation n  Developing countries have >50% of world’s

renewable capacity n  In both US & Europe, more than 50% of added

capacity is renewable

o  Grid-connected PV has been doubling/yr for the past decade, 100x since 2000

o  Wind capacity has grown by 27%/yr from 2004 – 09

Source: Renewable Energy Global Status Report, Sept 2010

Page 7: Optimal Demand Response - UC Santa Barbara

Key challenges: uncertainty

High Levels of Wind and Solar PV Will Present an Operating Challenge!

Source: Rosa Yang

Page 8: Optimal Demand Response - UC Santa Barbara

Today’s demand response o  Load side management has been practiced

for a long time n  E.g., direct load control

o  They are simple and small n  Centralized and static n  Invoked rarely

o  Hottest days in summer

n  Small number of participants o  Usually industrial, commercial

o  Because n  Simple system is sufficient n  Lack of sensing, control, & 2-way

communication infrastructure

Page 9: Optimal Demand Response - UC Santa Barbara

Tomorrow’s demand response o  Benefits

n  Adapt elastic demand to uncertain supply n  Reduce peak, shift load

o  Much more scalable n  Distributed n  Real-time dynamic n  Larger user participation

It’d be cheaper to use photons than electrons to deal with power shortages!

Page 10: Optimal Demand Response - UC Santa Barbara

Source: Steven Chu, GridWeek 2009

Page 11: Optimal Demand Response - UC Santa Barbara

Outline

o Motivation o Demand response model

o Some results

Page 12: Optimal Demand Response - UC Santa Barbara

Features to capture Wholesale markets

n  Day ahead, real-time balancing Renewable generation

n  Non-dispatchable Demand response

n  Real-time control (through pricing)

day ahead balancing renewable

utility

users

utility

users

Page 13: Optimal Demand Response - UC Santa Barbara

Model: user Each user has 1 appliance (wlog)

n  Operates appliance with probability n  Attains utility ui(xi(t)) when consumes xi(t)

Demand at t:

)(tiπ

!i =1 wp " i (t) 0 wp 1!" i (t)"#$

D(t) := !i xi (t)i!

xi (t) ! xi (t) ! xi (t) xi (t)t" # Xi

Page 14: Optimal Demand Response - UC Santa Barbara

P d (t), cd P d (t)( ), co !x(t)( )

Model: LSE (load serving entity)

Power procurement n  Renewable power:

o  Random variable, realized in real-time

n  Day-ahead power: o  Control, decided a day ahead

n  Real-time balancing power:

o  )()()()( tPtPtDtP drb −−=

( ) 0)( ),( =tPctP rrr

( ))( ),( tPctP bbb

•  Use as much renewable as possible •  Optimally provision day-ahead power •  Buy sufficient real-time power to balance demand

capacity

energy

Page 15: Optimal Demand Response - UC Santa Barbara

Key assumption Simplifying assumption

n  No network constraints

Page 16: Optimal Demand Response - UC Santa Barbara

Questions Day-ahead decision

n  How much power should LSE buy from day-ahead market?

Real-time decision (at t-) n  How much should users consume, given

realization of wind power and ? How to compute these decisions distributively? How does closed-loop system behave ?

dP

xi (t)

t-

iδPr (t)

t – 24hrs

available info:

decision:

)(,),( ⋅⋅ rii Fu π*dP

!i,Pr (t),Pd*

xi*(t)

Page 17: Optimal Demand Response - UC Santa Barbara

Our approach Real-time (at t-)

n  Given and realizations of , choose optimal to max social welfare, through DR

Day-ahead n  Choose optimal that maximizes expected

optimal social welfare

*dP

xi*(t) = xi

* Pd;Pr (t),!i( )Pr (t),!iPd

t- t – 24hrs

available info:

decision:

)(,),( ⋅⋅ rii Fu π*dP

!i,Pr (t),Pd*

xi*(t)

Page 18: Optimal Demand Response - UC Santa Barbara

Outline

o Motivation o Demand response model

o Some results n  T=1 case: distributed alg n  General T: distributed alg n  Impact of uncertainty

Page 19: Optimal Demand Response - UC Santa Barbara

T=1 case Each user has 1 appliance (wlog)

n  Operates appliance with probability n  Attains utility ui(xi(t)) when consumes xi(t)

Demand at t:

)(tiπ

!i =1 wp " i (t) 0 wp 1!" i (t)"#$

D(t) := !i xi (t)i!

xi (t) ! xi (t) ! xi (t) xi (t)t" # Xi

Page 20: Optimal Demand Response - UC Santa Barbara

Welfare function Supply cost

Welfare function (random)

c Pd, x( ) = cd P d( )+ co !(x)( )0Pd + cb !(x)"P d( )+

!(x) := !i xii" #P r

W Pd, x( ) = !iuii! (xi )" c Pd, x( )

excess demand

user utility supply cost

Page 21: Optimal Demand Response - UC Santa Barbara

Welfare function Supply cost

c Pd, x( ) = cd P d( )+ co !(x)( )0Pd + cb !(x)"P d( )+

!(x) := !i xii" #P r excess demand

!(x)cd Pd( ) cd !(x)( )0Pd cb !(x)"Pd( )+

Page 22: Optimal Demand Response - UC Santa Barbara

Welfare function Supply cost

Welfare function (random)

c Pd, x( ) = cd P d( )+ co !(x)( )0Pd + cb !(x)"P d( )+

!(x) := !i xii" #P r

W Pd, x( ) = !iuii! (xi )" c Pd, x( )

excess demand

user utility supply cost

Page 23: Optimal Demand Response - UC Santa Barbara

Optimal operation

Welfare function (random)

Optimal real-time demand response Optimal day-ahead procurement

W Pd, x( ) = !iuii! (xi )" c Pd, x( )

x* Pd( ) := arg maxxW Pd, x( ) given realization

of P r ,!i

Pd* := arg max

Pd EW Pd, x

* Pd( )( )

maxPd

E maxxW Pd, x( )Overall problem:

Page 24: Optimal Demand Response - UC Santa Barbara

Optimal operation

Welfare function (random)

Optimal real-time demand response Optimal day-ahead procurement

W Pd, x( ) = !iuii! (xi )" c Pd, x( )

x* Pd( ) := arg maxxW Pd, x( ) given realization

of P r ,!i

Pd* := arg max

Pd EW Pd, x

* Pd( )( )

maxPd

E maxxW Pd, x( )Overall problem:

Page 25: Optimal Demand Response - UC Santa Barbara

Optimal operation

Welfare function (random)

Optimal real-time demand response Optimal day-ahead procurement

W Pd, x( ) = !iuii! (xi )" c Pd, x( )

x* Pd( ) := arg maxxW Pd, x( ) given realization

of P r ,!i

Pd* := arg max

Pd EW Pd, x

* Pd( )( )

maxPd

E maxxW Pd, x( )Overall problem:

Page 26: Optimal Demand Response - UC Santa Barbara

Algorithm 1 (real-time DR)

Active user i computes n  Optimal consumption

LSE computes

n  Real-time price n  Optimal day-ahead power to use n  Optimal real-time balancing power

xi*

µb*

yo*

yb*

maxPd

E maxxW Pd, x( )

real-time DR

Page 27: Optimal Demand Response - UC Santa Barbara

Active user i :

xik+1 = xi

k +! ui ' xik( )!µb

k( )( )xi

xi

inc if marginal utility > real-time price

LSE :

µbk+1 = µb

k +! ! xk( )" yok " ybk( )( )+

inc if total demand > total supply

Algorithm 1 (real-time DR)

•  Decentralized •  Iterative computation at t-

Page 28: Optimal Demand Response - UC Santa Barbara

Theorem: Algorithm 1 Socially optimal

n  Converges to welfare-maximizing DR n  Real-time price aligns marginal cost of real-

time power with individual marginal utility Incentive compatible

n  max i’s surplus given price

x* = x* Pd( )

Algorithm 1 (real-time DR)

µb*xi

*

µb* = cb

' yb*( ) = ui' xi*( )

Page 29: Optimal Demand Response - UC Santa Barbara

Theorem: Algorithm 1 Marginal costs, optimal day-ahead and balancing power consumed:

Algorithm 1 (real-time DR)

cb' yb

*( ) = co' yo*( )+µo*

µo* =

!W!Pd

Pd*( )

Page 30: Optimal Demand Response - UC Santa Barbara

Algorithm 2 (day-ahead procurement)

Optimal day-ahead procurement

maxPd

EW Pd, x* Pd( )( )

Pdm+1 = Pd

m +! m µom ! cd ' Pd

m( )( )( )+

LSE:

calculated from Monte Carlo simulation of Alg 1

(stochastic approximation)

Page 31: Optimal Demand Response - UC Santa Barbara

Algorithm 2 (day-ahead procurement)

Optimal day-ahead procurement

maxPd

EW Pd, x* Pd( )( )

LSE:

µom =

!W!Pd

Pdm( )

µbm = µo

m + co' yo

m( )

Given !m,Prm :

Pdm+1 = Pd

m +! m µom ! cd ' Pd

m( )( )( )+

Page 32: Optimal Demand Response - UC Santa Barbara

Theorem Algorithm 2 converges a.s. to optimal for appropriate stepsize

Pd*

Algorithm 2 (day-ahead procurement)

! k

Page 33: Optimal Demand Response - UC Santa Barbara

Outline

o Motivation o Demand response model

o Some results n  T=1 case: distributed alg n  General T: distributed alg n  Impact of uncertainty

Page 34: Optimal Demand Response - UC Santa Barbara

General T case Each user has 1 appliance (wlog)

n  Operates appliance with probability n  Attains utility ui(xi(t)) when consumes xi(t)

Demand at t:

)(tiπ

!i =1 wp " i (t) 0 wp 1!" i (t)"#$

D(t) := !i xi (t)i!

xi (t) ! xi (t) ! xi (t) xi (t)t" # Xi

Coupling across time è Need state

Page 35: Optimal Demand Response - UC Santa Barbara

Time correlation

o  Example: EV charging n  Time-correlating constraint:

o  Day-ahead decision and real-time decisions

o  (1+T)-period dynamic programming

Day-ahead

available info:

decision:

( ), ( )i ru F⋅ ⋅*( ),dP t t∀

1( ) ,

T

i itx t R i

=

≥ ∀∑

t-

*( ), ( ), ( )r d iP t P t R t*( ),ix t i∀

t = 1,2,…, T

Remaining demand

Page 36: Optimal Demand Response - UC Santa Barbara

Algorithm 3 (T>1)

o  Main idea n  Solve deterministic problem in each step using

conditional expectation of Pr (distributed) n  Apply decision at current step

o  One day ahead, decide Pd* by solving

o  At time t-, decide x*(t) by solving

( ), 1

max ( ), ( ); ( ) . . ( )d

T T

d r i iP x tW P x P s t x R

τ τ

τ τ τ τ= =

≥∑ ∑

( )*max ( ), ( ); ( | ) . . ( ) ( )T T

d r i ix t tW P x P t s t x R t

τ τ

τ τ τ τ= =

≥∑ ∑

Page 37: Optimal Demand Response - UC Santa Barbara

Theorem: performance o  Algorithm 3 is optimal in special cases

o 

Algorithm 3 (T>1)

J A3 ! J * ! 12T Pr

2

1 2 3 4 -3000

-2500

-2000

-1500

-1000

-500

ρ: penetration of renewable energy

Wel

fare

Welfare with heuristic algorithmWelfare with idealized algorithm

Page 38: Optimal Demand Response - UC Santa Barbara

Effect of renewable on welfare

Pr (a,b) := a !µr + b !Vr

mean

Renewable power:

zero-mean RV

W Pr (a,b)( )

Optimal welfare of (1+T)-period DP

Page 39: Optimal Demand Response - UC Santa Barbara

Effect of renewable on welfare

Pr (a,b) := a !µr + b !Vr

Theorem o  Cost increases in var of o  increases in a, decreases in b o  increases in s

W Pr (a,b)( )W Pr (s, s)( )

Pr