Large-scale energy storage grid dispatching solution