Patent attributes
An energy storage system for a building includes a battery and an energy storage controller. The battery is configured to store electrical energy purchased from a utility and to discharge stored electrical energy for use in satisfying a building energy load. The energy storage controller is configured to generate a cost function including a peak load contribution (PLC) term. The PLC term represents a cost based on electrical energy purchased from the utility during coincidental peak hours in an optimization period. The controller is configured to modify the cost function by applying a peak hours mask to the PLC term. The peak hours mask identifies one or more hours in the optimization period as projected peak hours and causes the energy storage controller to disregard the electrical energy purchased from the utility during any hours not identified as projected peak hours when calculating a value for the PLC term.

