Optimal management of the energy systems using a Pumping Hydro Energy Storage (PHES)