A probabilistic method of modelling energy storage in electricity systems with intermittent renewable energy