A Dispatch Planner (DP) is a component in an Energy System Controller that controls the operation of energy resources interconnected into one energy system to provide optimal energy management for a customer. In one embodiment, the energy storage system includes an electric load, dispatchable sources of energy such as an electrical grid, diesel generators, combined heat and power generators; renewable sources of energy such as photo-voltaic cells and wind turbines; and stored energy resources such as electrochemical batteries or pumped hydro reserves.