Multiperiod Stochastic Peak Shaving Using Storage

Benjamin Flamm, Guillermo Ramos, Annika Eichler, John LygerosarXiv 2020

Abstract

This paper presents an online stochastic Model Predictive Control (MPC) framework to help grid-connected buildings use battery storage to minimize electricity costs, specifically targeting expensive monthly "demand charges." By introducing a novel weighting scheme for optimization horizons that span multiple billing periods and utilizing causal affine decision rules, the proposed system achieves operating costs within 1.3% of a theoretically perfect, omniscient controller.

Introduction: The Challenge of Demand Charges

For large industrial and commercial electricity consumers, the monthly power bill isn't just about total energy consumed; a significant portion (often up to 40%) comes from demand charges. These penalties are based on the absolute maximum power drawn from the grid during a specific billing period. To mitigate these costs, facilities employ "peak shaving," using local battery energy storage systems (BESS) to supply power during high-demand spikes.

Optimally controlling these batteries in real-time is challenging due to uncertainties in building electricity demand and local solar (PV) generation. A particular difficulty arises when the MPC's look-ahead horizon crosses the boundary between billing periods. Standard MPC formulations often struggle to balance the peak penalty of the current month with the emerging peak of the next, leading to erratic battery behavior and cost spikes.

Methodology

The authors propose a two-pronged approach involving predictive modeling and a specialized stochastic MPC formulation.

Predictive Modeling

The system utilizes a regression-based PVUSA model for solar forecasting, updated every 12 hours with recent data. Building load is predicted using Artificial Neural Networks (ANNs) trained on weather forecasts and historical demand.

Stochastic MPC Formulation

To address the billing period boundary, a "Fixed + Proportional" (F+P) weighting scheme is introduced. The current period's peak is fully penalized, while the upcoming period's peak is penalized proportionally to its presence in the look-ahead horizon.

Additionally, the controller optimizes over Causal Affine Decision Policies. Instead of a single fixed power target, the grid power decision is formulated as an affine function of realized net demand. This provides flexibility to handle uncertainty without "cheating" by looking into the future of specific scenarios. To improve robustness against forecast errors, zero-mean Gaussian noise is added to the initial timestep's scenarios.

Datasets

The study utilizes real-world data from the Paul Scherrer Institute (PSI) in Switzerland, covering March and April 2018. This includes hourly PV output, building demand, and 5-day-ahead ensemble weather forecasts from MeteoSwiss.

Historical PV generation and building electricity demand data from the PSI campus.

Results and Discussion

The proposed stochastic MPC framework was evaluated against several baselines. While a simple deterministic MPC reduced costs from 5,711.30 CHF (no storage) to 5,521.19 CHF, the proposed stochastic method achieved a significantly lower cost of 4,912.08 CHF. This performance is remarkably close to the theoretical optimum of 4,848.98 CHF (perfect foresight), representing a gap of only 1.3%.

Grid power (top) and battery energy levels (bottom) over time. The dashed lines indicate billing period boundaries, showing how the system manages peaks and transitions between months.

Key insights from the results include:

  • Boundary Smoothing: The "F+P" strategy prevents end-of-month "panic" discharges, leading to smoother transitions.
  • Near-Term Prioritization: Weighting the immediate 24-hour peak improves performance by acting conservatively when confidence is highest.
  • Robustness through Noise: Injecting noise into the first timestep prevents the controller from being over-optimistic about narrow forecast ensembles.

Conclusion

The research demonstrates that a well-tuned stochastic MPC, accounting for multi-period billing and forecast uncertainty, can effectively minimize demand charges. Future work may explore more robust cost functions and extended forecast horizons to further improve performance and capture long-term trends.

Summary updated

BibTeX
@misc{flamm2020multiperiod,
  author = {Benjamin Flamm and Guillermo Ramos and Annika Eichler and John Lygeros},
  title = {{Multiperiod Stochastic Peak Shaving Using Storage}},
  year = {2020},
  eprint = {2007.02928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.02928},
}
Figure