application of sddp to the real-time dispatch of storage · 2017-10-23 · application of sddp to...

27
Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research and Econometrics Université catholique de Louvain Joint work with Yuting Mou (UCL), Léopold Cambier (Stanford University), Damien Scieur (Ecole Normale Supérieure) October 23, 2017 INFORMS

Upload: others

Post on 18-Mar-2020

3 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Application of SDDP to the Real-Time Dispatch of Storage

Anthony Papavasiliou

Center for Operations Research and Econometrics

Université catholique de Louvain

Joint work with Yuting Mou (UCL), Léopold Cambier (Stanford University), Damien Scieur (Ecole Normale Supérieure)

October 23, 2017

INFORMS

Page 2: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Outline

• Motivation

• FAST Toolbox for SDDP

• Stochastic multi-period dispatch of pumped hydro resources• Renewable supply model

• Stochastic multi-period economic dispatch

• A Case Study of Germany

• Conclusions

Page 3: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Motivation

Page 4: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Multi-Stage Stochastic Economic Dispatch

• Economic dispatch: function of • re-dispatching online units• mobilizing fast-start units

in intra-day and real time for purpose of loadfollowing

• Should be distinguished from day-ahead unit commitment

• Typical time scale: 5-minute time step, 15-minute look-ahead, solved 7.5 minutes in advance of operations

• Increasing sophistication of MSED:• Multi-period look-ahead• ‘Rough’ consideration of uncertainty by securing

flexible ramp capacity (e.g. California ISO and Midwest ISO)

Page 5: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Applying An Effective Solution …

• Multi-stage stochastic linear programming• Specific class of problems for multi-period decision

making under uncertainty

• Natural formulation for various problems in power system planning / operations

• Stochastic Dual Dynamic Programming (SDDP)• Scalable: go-to solution for medium-term hydro-

thermal planning

• Extensive theoretical analysis (representation of uncertainty, convergence, binary decisions)

Page 6: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

… To An Emerging Problem

• Multi-period stochastic economic dispatch• Limited analysis

• Highly relevant, due to storage and uncertainty in short-term operations

• Naturally cast as a multi-stage stochastic linearprogram

• Our research questions: • Can dynamic programming be used to solve MSED?

• Is MSED an interesting problem?

A. Papavasiliou, Y. Mou, L. Cambier, D. Scieur. ‘Application of Stochastic Dual Dynamic Programming to the Real-Time Dispatch of Storage under Renewable Supply Uncertainty’. IEEE Transactions on Sustainable Energy, 2017.

Page 7: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

FAST Toolbox for SDDP

Page 8: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Multi-Stage Stochastic Linear Programming

𝑚𝑖𝑛𝑥

𝑡=1

𝐻

𝜔[𝑡]∈Ω[𝑡]

𝑝𝑡,𝜔[𝑡]𝑐𝑡𝑇𝑥𝑡,𝜔[𝑡]

𝑇𝑡,𝜔𝑡𝑥𝑡−1,𝜔 𝑡 ,𝐴(𝜔 𝑡 ) + 𝑊𝑡𝑥𝑡,𝜔[𝑡]

=ℎ𝑡,𝜔𝑡, 𝑡 ∈ 𝑇, 𝜔[𝑡] ∈ Ω[𝑡]

𝑥𝑡,𝜔[𝑡]≥0, 𝑡 ∈ 𝑇, 𝜔[𝑡] ∈ Ω[𝑡]

Set of possible history of events up to stage t: Non-scalable

Page 9: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Decomposing the Problem

• Solution approach: break the overall problem by time stage 𝑡, and uncertainty realization 𝑘 -> small linear program 𝑁𝐿𝐷𝑆𝑡,𝑘for each 𝑡, 𝑘

• The value function 𝑉𝑡(𝑥) ispiecewise linear affine, question is how to ‘discover’ it

𝑁𝐿𝐷𝑆𝑡,𝑘 𝑥𝑡−1 :𝑚𝑖𝑛𝑥𝑐𝑡𝑇𝑥 + 𝑉𝑡(𝑥)

𝑊𝑡𝑥=ℎ𝑡,𝑘 − 𝑇𝑡 𝑥𝑡−1

𝑥 ≥0

Approximation of cost-to-gofunction

Trial decisionfrom previousperiod

Page 10: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Describing Uncertainty as a Lattice• A lattice is a graphical description of Markovian uncertainty:

• Nodes: realization of uncertainty ℎ𝑡,𝜔𝑡, 𝑇𝑡,𝜔𝑡

• Arcs: transition probability ℙ[𝜔𝑡|𝜔𝑡−1]

• Serial independence: specific class of lattices where ℎ𝑡,𝜔𝑡, 𝑇𝑡,𝜔𝑡

isdistributed independently of history: ℙ[𝜔𝑡|𝜔[𝑡−1]] =ℙ 𝜔𝑡 , ∀𝜔 𝑡−1 , ∀𝑡

Serial independence => value functions are sharedacross lattice nodes

Page 11: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Dual Dynamic ProgrammingAlgorithm

• Forward pass• Generates trial decisions• Determines probabilistic upper bound• Determines lower bound

• Backward pass• Generates optimality cuts that approximate cost-to-

go 𝑉𝑡(𝑥)

• FAST is a Matlab open-source implementationof SDDP: https://web.stanford.edu/~lcambier/fast/

• User needs to specify three things:• Decomposition subproblem (NLDS)• Uncertainty, in the form of a lattice• Solver settings

Page 12: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Multi-Period Dispatchof Pumped-Hydro Resources

Page 13: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Renewable Supply Model

• Multiplicative model of forecasterror/renewable production ratio:• Capture heteroscedasticity of data

• Capture inter-temporal dependenceof forecast error

• Compatible with SDDP format (serial independence)

𝑦𝑡+1 = (𝑐 + 𝜙 ∙ 𝑦𝑡) ∙ 𝜂𝑡

𝑝𝑡 = 𝑅𝐹𝑡 ∙ 𝑦𝑡

Serial independence=> value functions are shared across latticenodes

Page 14: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Multi-Period Economic Dispatch

• Objective: minimize load shedding and fuel cost

• Coupling constraint: power balance

• 𝑙𝑠𝑛: load shedding

• 𝑐𝑔: fuel cost

• 𝐷𝑙: load

• 𝑝𝑑𝑔: pumping demand

• 𝑝𝑝𝑔: pumping production

• 𝑝𝑔 : power production

• 𝑅𝐹𝑔 : renewable forecast

• 𝑦𝑔 : renewable forecast / realization ratio

• 𝑓𝑘 : power flow over line

𝑚𝑖𝑛1

4( 𝑛∈𝑁 𝑉𝑂𝐿𝐿 ∙ 𝑙𝑠𝑛 + 𝑔∈𝐺 𝑐𝑔)

𝑙∈𝐿𝑛

𝐷𝑙 +

𝑙∈𝐿𝑛

𝑝𝑑𝑔 +

𝑘∈(𝑛,∙)

𝑓𝑘 =

𝑔∈𝐺

𝑝𝑔 +

𝑔∈𝑃𝐻𝑛

𝑝𝑝𝑔 +

𝑔∈𝐺𝑅𝑛

𝑅𝐹𝑔𝑦𝑔 + 𝑙𝑠𝑛 +

𝑘∈(∙,𝑛)

𝑓𝑘 , 𝑛 ∈ 𝑁

Page 15: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Multi-Period Economic Dispatch (II):Conventional Generators

• Piecewise affine fuel cost

• Technical minimum/maximum

• Ramp rate limits

• 𝑈𝑔 : Unit commitment (on/off) decision

• 𝐴𝑔,𝑚, 𝐵𝑔,𝑚: cost function parameters

• 𝑅𝑈𝑔, 𝑅𝐷𝑔: ramp up/down limit

• 𝑐𝑔: fuel cost

• 𝑝𝑔 : power production

𝑃𝑀𝑖𝑛𝑔𝑈𝑔 ≤ 𝑝𝑔 ≤ 𝑃𝑀𝑎𝑥𝑔𝑈𝑔, 𝑔 ∈ 𝐺

Unit commitment isfixed to the solution of a day-ahead unit commitment model

𝑝𝑔 − 𝑝𝑔,𝑡−1 ≤ 𝑅𝑈𝑔𝑈𝑔 + 𝑀𝑇𝐿𝑔 1 − 𝑈𝑔,𝑡−1 , 𝑔 ∈ 𝐺

𝑝𝑔,𝑡−1 − 𝑝𝑔 ≤ 𝑅𝐷𝑔𝑈𝑔 + 𝑀𝑇𝐿𝑔 1 − 𝑈𝑔,𝑡−1 , 𝑔 ∈ 𝐺

𝑐𝑔 ≥ 𝐹𝑔 𝐴𝑔,𝑚𝑈𝑔 + 𝐵𝑔,𝑚𝑝𝑔 , 𝑔 ∈ 𝐺,m = 1,…3

Page 16: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Multi-Period Economic Dispatch (III):Pumped Hydro Units

• Storage dynamics

• Pumped hydro consumption limits

• Pumped hydro production limits

• 𝑠𝑔 : stored energy

• Γ𝑔𝑑/Γ𝑔

𝑝: pumping/production

efficiency of pumped hydro unit

• 𝐷𝑀𝑎𝑥𝑔: power consumption limit

• 𝑃𝑀𝑎𝑥𝑔: power production limit

𝑠𝑔 = 𝑠𝑔,𝑡−1 + 0.25 Γ𝑔𝑑 ∙ 𝑝𝑑𝑔 −

𝑝𝑝𝑔

Γ𝑔𝑝 , 𝑔 ∈ 𝑃𝐻

𝑝𝑑𝑔 ≤ 𝐷𝑀𝑎𝑥𝑔, 𝑔 ∈ 𝑃𝐻

𝑝𝑝𝑔 ≤ 𝑃𝑀𝑎𝑥𝑔, 𝑔 ∈ 𝑃𝐻

Page 17: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Stochastic Multi-Period Economic Dispatch (IV):Power Flow

• Fix reference bus angle

• Linearized DC power flow

• Line flow limits

• 𝜃𝑚 : bus angle

• 𝐵𝑘 : line susceptance

• 𝑓𝑘: line power flow

• 𝑇𝐶𝑘: line flow limit

𝜃ℎ𝑢𝑏 = 0

𝑓𝑘 = 𝐵𝑘 𝜃𝑚 − 𝜃𝑛 , 𝑘 = 𝑚, 𝑛 ∈ K

−𝑇𝐶𝑘 ≤ 𝑓𝑘 ≤ 𝑇𝐶𝑘 , 𝑘 ∈ 𝐾

Page 18: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

A Case Study of Germany

Page 19: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

German System

• Two-step simulation of German market:• Weekly clearing of reserve + energy

exchange: unit commitment model with weekly horizon (September 22-28, 2014)

• Real-time balancing: economic dispatch model for Thursday, with a horizon of 24 hours and a time step of 15 minutes

• Lattice: 96 stages, 10 nodes per stage

• 292 generators, 228 buses, 312 lines

• Assume fast-start resources at every nodewith marginal cost of 100 – 500 €/MWh

Page 20: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Convergence

• Run time for obtaining a policy: 4.3 hours

• Run time with PTDF formulation of power flows required 16.4 hours!

• Run time for obtaining a decision, given a history of uncertainty: sub-second

Page 21: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Policy Comparison

• Deterministic dispatch: fixed pumped hydro schedule to day-ahead solution

• Benefits of perfect foresight relative to stochastic programming: 0.8%

• Benefits of stochastic programming relative to deterministic dispatch: 1.2%

Slow unit cost

(𝟏𝟎𝟑 €)

Fast-start cost

(𝟏𝟎𝟑 €)

Total cost(𝟏𝟎𝟑 €)

𝝈 total cost(𝟏𝟎𝟑 €)

Fast-start energy(MWh)

Excessenergy(MWh)

Perfect foresight 17380 850 18231 291 7204 1809

Stochasticprogramming

17423 955 18378 305 7511 1855

Deterministic 17373 1221 18594 350 8688 1879

Page 22: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Adaptiveness of Stochastic Dispatch

• Left figure: Simulations show that variations in dispatch of pumped hydro can besignificant across samples

• Right figure: General tendency of optimal policy is to manage storage levels so as to levelize marginal cost for every time step for every realization

Page 23: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Effects of Transmission and Ramping

Total cost (𝟏𝟎𝟑 €) 𝝈 total cost (𝟏𝟎𝟑 €)

Perfect foresight (no transmission) 14797 97

Stochastic programming (no transmission)

14828 100

Deterministic (no transmission) 14867 105

Lookahead 1-step (no transmission) 14865 105

SP hydro-only (no transmission) 14830 101

Perfect foresight (no ramp / transmission)

14796 97

Stochastic programming (no ramp / transmission)

14828 100

Deterministic (no ramp / transmission)

14856 105

Page 24: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Some Observations

• Incremental effect of ramp constraints is negligible => are flexible ramp products all that important?

• Incremental benefit of look-ahead is minimal (compare fourth and fifth row) => are short-term lookaheads in real-time markets as important as controlling pumped hydro optimally?

• Performance of ‘SP hydro-only’ very close to stochastic programmingoptimal (compare third and sixth row) => are short-term lookaheadsin real-time markets as important as controlling pumped hydro optimally?

Page 25: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Conclusions

Page 26: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Conclusions and Unresolved Questions

• Transmission constrained multi-stage stochastic economic dispatch usingSDDP can be implemented operationally• Day-ahead computation of value functions (solved in a few hours) • Value functions can be used in real-time dispatch (solved in a few seconds)

• Benefits (around 1%) seem to be fewer than those of stochastic unit commitment

• Inclusion of unit commitment in the model was not successful

• There is value in coordinated dispatch of storage, but how to integrate it in market operations?• Central dispatch by ISO/TSO could be one option, which goes against idea of

decentralized market operations• Decentralized bidding could create market power mitigation challenges

Page 27: Application of SDDP to the Real-Time Dispatch of Storage · 2017-10-23 · Application of SDDP to the Real-Time Dispatch of Storage Anthony Papavasiliou Center for Operations Research

Thank you

For more information

[email protected]

• http://perso.uclouvain.be/anthony.papavasiliou/public_html/home.html