Energy demand management of electric vehicles