2nd June 2015
Mean-field game formulations for distributed storage management in dynamic electricity markets
David Angeli joint research with: Antonio De Paola and Prof. Goran Strbac
Overview and Motivations Domestic micro-storage devices are - - PowerPoint PPT Presentation
2 nd June 2015 Mean-field game formulations for distributed storage management in dynamic electricity markets David Angeli joint research with: Antonio De Paola and Prof. Goran Strbac Overview and Motivations Domestic micro-storage devices
2nd June 2015
David Angeli joint research with: Antonio De Paola and Prof. Goran Strbac
from the network during a 24h interval, trying to maximize profit
1) Profit for the users 2) Benefits for the system (i.e. reduction in demand peaks)
i.e. : if they all charge when price is low → shifting of peak demand
The single storage element is modelled as: ) ( ) ( t u t E
MAX
MAX MIN
: E
Charge of the device Rate of charge
each device is limited:
(uMIN) are set:
We assume that the number of devices is extremely high and can be approximated as infinite The charge status of the population is described by the distribution function:
) , ( E t m
The optimal control will be calculated in its feedback form
) , (
*
E t u
To model efficiency, quadratic losses are introduced:
) ( ) ( ) (
2 t
u t u t y
MAX
E ST
2
uncertainties.
variation of demand:
:
ST
D
Original demand profile Variation introduced by storage
maximizing its profit:
END T
END
MEAN FIELD GAME Coupled Partial Derivative Equations:
1. Transport equation: describes the evolution in time of the distribution m(t,E) of the charge level 2. HJB equation: returns the optimal cost-to-go function V(t,E) and the optimal control u*(t,E)
u E t V u u dE E t u E t u E t m t D p E t V
E E
t
MAX
) , ( ) ( ) , ( ) , ( ) , ( ) ( inf ) , (
2 2 * *
(to minimize)
0 E
) ( ) , ( E E T V
END
Additional term to impose desired final charge
*
E t
The two PDEs are interdependent:
the optimal control u*(t,E) returned by the HJB
*
Transport Equation HJB Equation
We are interested in conditions of existence and uniqueness for the fixed point. Two different approaches:
1) The HJB equation is integrated starting from V(T,E)=Ψ(E) and assuming a known distribution At each time step i: 1.1) Initial estimate is calculated assuming price 1.2) The price is updated: 1.3) Steps 1.1 and 1.2 are repeated until convergence 2) Once the values of V and u* have been calculated, a new estimate for m is obtained integrating the transport equation 3) Steps 1 and 2 are repeated until convergence of V and m
0 E
0 t
dE E t u E t u E t m t D p t p
MAX
E FIN
] ) , ( ) , ( )[ , ( ) ( ) (
2
GWh EMAX 25 GW h E u
MAX MAX
5 . 2 10 h t 1 . : 1000 :
MAX
E E
4
10 :
h TEND 24 :
2
2 ) (
MAX
E E c E
DEMAND PROFILE PRICE FUNCTION
Optimal control u*(t,E)
Optimal cost-to-go function V(0,E)
NOTE: the optimal control and the cost function are calculated in the MFG framework and they refer to the whole population. The values for the single devices are obtained dividing by the total number of players.
TOTAL STORED ENERGY: DEMAND PROFILES:
Total energy stored in the devices at each iteration of the forward/backward integration: a fixed point is reached
The storage devices are able to considerably reduce the amplitude of peaks and valleys in the original power demand profile
We ideally want:
0 E
END
Same charge distribution at the beginning and at the end of the considered time interval
All devices will have the same final energy level EDES
DES END
2
DES
2
We introduce a new state variable I(t) in the HJB eq.
t
The single device is now described by:
Current energy level (to take constraints into account)
Total variation of energy (we want I(TEND) to be small) The HJB equation now becomes:
I E u t
2 *
2
By adding the state I(t), we can explicitly penalize differences between initial and final state
Energy level of the storage devices for different initial energies (last iteration)
Values of the optimal cost-to-go function V(0,E,0). Lower values are achieved for devices with low E(0), which are able to charge more energy in the initial phase, when prices are lower
Total stored energy at different iterations of the HJB and transport equation
The new demand profiles are very similar to the ones obtained with the previous approach
NEW APPROACH: consider finite number N of
i i i I i i i E i i i ST
i i i t
i i i
2
HJB equation for the i-th population:
Total demand variation introduced by storage
populations is given by the price of energy p(D0(t)+DST(t))
The fixed point at each t will be given by:
N N I
E N N N N N N I E i i
, * , 1 * 1 1 1 *
1 1
Price if optimal control u* is applied:
Contribution to demand of the N-th population
Optimal control ui*(t,E)
* 1 1 * 1 * N N N
i i i i I i i i i E i i u i i i
i i i
2 * *
At each time t the values of p* and (u1*,…,uN*) are calculated iteratively until convergence is achieved The computational complexity is linear with respect to the number N
Energy levels of the storage devices with different initial energies for the two populations
GWh EMAX 15 :
1
GW u u
MIN MAX
5 . 1
1 1
4 1
10 9 .
2 N
Parameters:
GWh EMAX 10 :
2
GW u u
MIN MAX
2
2 2
4 2
10 1 . 1
Number of populations
Values of the optimal cost-to-go functions Vi(0,Ei,0) for the two populations of devices Demand profiles for different iterations
NOW: consider a system divided in several areas connected
taking into account the new constraint
holds for this new case
) ( , ,
A A A A
G C D m
AB AB x
AB
) ( , ,
C C C C
G C D m ) ( , ,
B B B B
G C D m
BC BC x
BC
AC AC x
AC
Distribution of devices Max capacity Line reactances In simulations:
Generated power
Power flow
Generation cost
resulting power flows Fij:
WE ASSUME:
) ( ) ( ) ( G C G C G C
C B A
C B A
D D D
demand, solving a quadratic programming problem:
,
min
I
) (
i i i G
C
. .t s
i i i
I D G Y I
ij j i ij ij
F y F ) ( :
i
I
Net inflow in area i
: Y
Admittance matrix
The price pi at which devices in area i exchange energy is given by the Lagrange multiplier associated with the constraint:
i i
Y I
the same area
i i i i i i i i i
2
* *
i
A A E A A A A u A A t
A A
2 *
following iterations (until convergence): 1) given initial prices (pA*, pB*,pC*), optimal controls (uA*,uB*, uC*) are calculated 2) the demand variation introduced by storage and the new flows are calculated 3) A new economic dispatch is performed and the prices updated
Generation profiles Total stored energy
Power flows Nodal prices
exchange between appliances and grid