500 likes | 683 Views
Recent work on DOASA. Andy Philpott Electric Power Optimization Centre (EPOC) University of Auckland ( www.epoc.org.nz ) joint work with Anes Dallagi, Emmanuel Gallet, Ziming Guan, Vitor de Matos. EPOC version of SDDP with some differences Version 1.0 (P. and Guan, 2008)
E N D
Recent work on DOASA Andy Philpott Electric Power Optimization Centre (EPOC) University of Auckland (www.epoc.org.nz) joint work with Anes Dallagi, Emmanuel Gallet, Ziming Guan, Vitor de Matos
EPOC version of SDDP with some differences Version 1.0 (P. and Guan, 2008) Written in AMPL/Cplex Very flexible Used in NZ dairy production/inventory problems Takes 8 hours for 200 cuts on NZEM problem Version 2.0 (P. and de Matos, 2010) Written in C++/Cplex with NZEM focus Adaptive dynamic risk aversion Takes 8 hours for 5000 cuts on NZEM problem DOASA Dynamic Outer Approximation Sampling Algorithm
Hydro-thermal scheduling SDDP (PSR) versus DOASA
This talk should be about optimization… A Markov Chain inflow model Risk modelling example in DOASA River chain optimization DOASA Overview of this talk My next talk(?) is about benchmarking electricity markets using SDDP.
Part 1 Markov chains and risk aversion (joint work with Vitor de Matos, UFSC)
Electricity sector by energy supply in 2009 http://www.med.govt.nz/
Experiments in NZ system HAW MAN WKO 9 reservoir model
Inflow modelling Benmore inflows over 1981-1985 Source: [Harte and Thomson, 2007]
DOASA model assumes stagewise independence SDDP models use PAR(p) models. NZ reservoir inflows display regime jumps. Can model this using “Hidden Markov models” ( [Baum et al, 1966]) Markov-chain model
Hidden Markov model with 2 climate states DRY WET p11 p26 w1 w2 w3 w4 w5 w6 INFLOWS
Hidden Markov model with AR1 (Buckle, Haugh, Thomson, 2004) Yt is log of inflows St a Markov Chain with 4 states Zt is an AR1 process
Hidden Markov model with AR1 Benmore inflows in-sample test Source: [Harte and Thomson, 2007]
Markov Model with 2 climate states Aim: test if we can optimize with Markov states DRY WET p11 p26 w1 w2 w3 w4 w5 w6 WET INFLOWS DRY INFLOWS
Transition matrix P q 1-q 1-p p P =
Markov-chain DOASA This gives a scenario tree
Climate state for each island in New Zealand (W or D) State space is (WW, DW, WD, DD). Assume state is known. Sampled inflows are drawn from historical record corresponding to climate state e.g. WW. Record a set of cutting planes for each state. Report experiments with a 4-state model: (WW, DW, WD, DD). Markov-chain model for experiments
Markov-chain SDDP (c.f. Mo et al 2001) P is a transition matrix for S climate states, each with inflows wti
Coherent risk measure construction Two-stage version
Coherent risk measure construction Multi-stage version (single Markov state)
State-dependent risk aversion We can choose lambda according to Markov state lt+1(i) = 0.25, i=1, 0.75, i=2.
State-dependent risk aversion “4 Lambdas” model in experiments
Experiments Reservoir inflow samples drawn from 1970-2005 inflow data Each case solved with 4000 cuts Simulated with 4000 Markov Chain scenarios for 2006 inflows Nine reservoir model (+ four Markov states)
Experiments Average storage trajectories
Experiments Fuel and shortage cost in 200 most expensive scenarios
Experiments Fuel and shortage cost in 200 least expensive scenarios
Experiments Number of minzone violations
Experiments Expected cost compared with least expensive policy
Part 2 Mid-term scheduling of river chains (joint work with Anes Dallagi and Emmanuel Gallet at EDF)
Mid-term scheduling of river chains What is the problem? • EDF mid-term model gives system marginal price scenarios from decomposition model. • Given price scenarios and uncertain inflows how should we schedule each river chain over 12 months? • Test SDDP against a reservoir aggregation heuristic
Case study 1 A parallel system of three reservoirs
Case study 2 A cascade system of four reservoirs
weekly stages t=1,2,…,52 no head effects linear turbine curves reservoir bounds are 0 and capacity full plant availability known price sequence, 21 per stage stagewise independent inflows 41 inflow outcomes per stage Case studies Initial assumptions
Mid-term scheduling of river chains Revenue maximization model
DOASA stage problem SP(x,w(t)) Θt+1 Reservoir storage,x(t+1) Outer approximation using cutting planes V(x,w(t)) =
Heuristic uses reduction to single reservoirs Convert water values into one-dimensional cuts
Results for parallel system Upper bound from DOASA with 100 iterations
Results for parallel system Difference in value DOASA - Heuristic policy Difference in value DOASA
Results cascade system Upper bound from DOASA with 100 iterations
Results: cascade system Difference in value DOASA - Heuristic policy
weekly stages t=1,2,…,52 include head effects nonlinear production functions reservoir bounds are 0 and capacity full plant availability known price sequence, 21 per stage stagewise independent inflows 41 inflow outcomes per stage Case studies New assumptions
Modelling head effects Piecewise linear production functions vary with volume
Modelling head effects A major problem for DOASA? • For cutting plane method we need the future cost to be a convex function of reservoir volume. • So the marginal value of more water is decreasing with volume. • With head effect water is more efficiently used the more we have, so marginal value of water might increase, losing convexity. • We assume that in the worst case, head effects make the marginal value of water constant at high reservoir levels. • If this is not true then we have essentially convexified C at high values of x.
Assume that the slopes of the production functions increase linearly with reservoir volume, so Denergy = b.Dvolume.flow In the stage problem, the marginal value of increasing reservoir volume at the start of the week is from the future cost savings (as before) plus the marginal extra revenue we get in the current stage from more efficient generation. So we add a term p(t).b.E[h(w)] to the marginal water value at volume x. Modelling head effects Convexification
Modelling head effects: cascade system Difference in value: DOASA - Heuristic policy
Modelling head effects: casade system Top reservoir volume - Heuristic policy
Modelling head effects: casade system Top reservoir volume - DOASA policy