Method for operating energy storage system

The present invention relates to a method for operating an energy storage system. The present invention relates to a power system operatively connected to the energy storage system (ESS) in. By prediction based on the time history of the state of the application and ESS power system data relating to the charging of the ESS is achieved - discharge schedule optimization. The present invention particularly relates to certain periodicity is activated historic the ESS, for example, for the amount of power system load leveling, frequency regulation, swaps, peak load shaving or integration of renewable power plant purposes.