energy management of power system