# Convex Hull Stochastic Dynamic Programming Applied to

Convex Hull Stochastic Dynamic Programming Applied to
Electric Vehicle Charging and Frequency Regulation Bids
Electric Energy Systems Group, Electrical and Computer Engineering
Solution Algorithm
o avoids using more integer variables in backwards recursion
ο§ Optimal Value Function – Vh(Eh)
o Def: Expected cost of making optimal decisions from stage h through
the end of stage H given that the state of charge is Eh at the start of
hour h
1. Discretize the feasible state space at the final decision time, Ebatt(H), into N
points
οΆ Existing Deterministic Optimization Methods Ignore Regulation Signal
Effect on State of Charge
ο§ Assume integrated signal energy is zero over one hour, or use expected
value
π
ππ» πΈππππ π,π» = minππ,π» ,π΅π,π» πΌπ πΆπ» πΈππππ π,π» , ππ,π» , π΅π,π» , ππ»
+ ππ»+1 πΈππππ π,π»+1
20
3.
15
Approximate ππ» β with ποΏ½π» β , a piecewise-linear function on the convex hull
of the points ππ» πΈππππ π,π»
10
Approximation of Vh by Convex Hull
Solving for V5(16.8) Using 30 Sample Regulation Signals
0.35
0.25
Solution
0.3
0
-1
-0.5
0
0.5
Optimal Value Function Cost (\$)
5
Convex Hull
1
0.25
Hourly Sum of Normalized Regulation Energy
Cost (\$)
ο§
EVs providing regulation
First to model pro-rated
contract penalties
25
Counts
οΆ A Stochastic Method is Needed to
Consider the Distribution of the
Regulation Signal
οΆ Contributions:
ο§ First tractable stochastic model of
2. For i= 1, …, N solve
Histogram of PJM Regulation Signal over 1 Week
Providing Regulation by Charging Only
0.2
0.15
0.2
0.15
ποΏ½6
0.1
0.05
Energy at Pavg
17
18
19
20
21
22
23
24
22
20
Energy Bounds
(from Regulation Bid)
18
Energy at Pavg
16
14 Actual Energy State
16
18
20
22
1
24
Energy (kWh)
For i = 1, …, N solve
πβ πΈππππ π,β = minππ,β ,π΅π,β πΌπ πΆβ πΈππππ π,β , ππ,β , π΅π,β , πβπ + πβ+1 πΈππππ π,β+1
οΆ Must solve for optimal average charge rate and regulation bids
24
12
For h= H-1, H-2, …, 1
π½π is a two stage deterministic equivalent stochastic MILP with 30 sample
π
regulation signals, ππ»
A. πͺπ -Stage h costs include
i.
Energy purchase costs and regulation revenues
ii. Adjustments to energy purchase cost caused by following the
regulation signal or reaching Emax
iii. Pro-rated penalty for violating regulation contract for each sample
B.
Regulation Signal
1
26
Energy Sample Paths
Hour 5
Initial SOC (kWh)
ο§
Simulation Results
Penaltyπ = Q ππ βt B ∗
ππ
οΏ½ πΌπ‘
t
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
Time
16
o Inconvenience cost can be given by EV owner (\$/hr late)
Battery might reach capacity before regulation contract expires, breaking
contract:
o pro-rated penalty is a function of time, not energy
o Binary indicator variables (π°π ) indicate if contract was violated in each
sub-hourly timestep
ο§
οΆ Problem Size: 1593 variables, 390 binaries, 3,784 equations
ο§ Solved 133 times in algorithm
οΆ Solver: GAMS w/ XPRESS on Intel 6 core 3.2Ghz cpu
οΆ Results
ο§ total simulation time ~3min
ο§ ~75% of pts on the convex hull
Energy Bounds
(from Regulation Bid)
0
ο§ Pavg- average charge rate
ο§ B – Regulation Bid (identical up and down)
ο§ B ≤ Pavg and B ≤ Pmax - Pavg
οΆ State of charge takes a random walk
ο§ Battery might not be charged by desired time:
PJM DA prices (12/1/2011), Plug in at midnight, Unplug at 7am
21 point state space discretization
Hour 6
0.05
οΆ
οΆ Setup
ο§ Data:1 vehicle , Pmax=8kW, E0=12 kWh, Emax=24kWh,
0
0.1
3.
Simulation
Normalized 5 Minute Integral of Regulation Signal
οΆ Convex Hull Stochastic Dynamic Programming
ο§ Use a piecewise-linear, function to approximate the optimal value function
οΆ Smart Charging of Electric Vehicles allows demand side participation
in Energy and Ancillary Services Markets
ο§ Intermittent renewable generation requires more ancillary services
ο§ EV owners want to minimize charging costs
ο§ EVs can provide Secondary Frequency Regulation by adjusting EV charge
Battery State of Charge (kWh)
Background and Contributions
π½π―+π - cost function of the battery state of charge at scheduled vehicle
unplug time
A. Includes an Inconvenience penalty for the remaining time to reach
Emax by charging at Pmax
2
3
4
5
6
Simulation Timestep (hr)
7
4
4.5
6
5.5
5
Simulation Timestep (hr)
6.5
7
8
Optimal Decisions
Hour
1
2
3
4
5
6
7
B
0
0
0
4
4
4
0
Pavg
0
0
0
4
4
4
0
Conclusions and Future Work
οΆ Conclusions
ο§ Driver inconvenience is almost always avoided with penalty of \$20/hr
o Pavg is biased to finish early in last hour
Regulation contract is almost always broken in the last hour, sometimes earlier
Convex Hull is a good approximation of optimal value function
If Pavg&gt;4 kWh, then Pavg+B=8, else B=Pavg
ο§
ο§
ο§
οΆ Future Work
ο§ Understand convexity properties of the value function
ο§ Uncertain energy and regulation prices, adds more states
ο§ Compare with other methodologies
ο§ Multiple vehicle bid aggregation
ο§ Apply method to other storage devices (Stationary Batteries, Flywheels)
T