Economic MPC with an Online Reference Trajectory for Battery Scheduling Considering Demand Charge Management
Cristian Cortes-Aguirre, Yi-An Chen, Avik Ghosh, Jan Kleissl, Adil Khurram
TL;DR
This paper tackles reducing monthly demand charges in microgrids with high renewable penetration by enhancing EMPC-based BESS dispatch with an online, short-horizon reference trajectory. It develops a two-stage framework: (i) online generation of a 24–48 h reference trajectory (with or without peak tracking) and (ii) an MPC stage that uses this trajectory in the terminal cost/constraints, including auxiliary states to track non-coincident and on-peak demand peaks. By comparing shrinking and rolling horizons across 24/48 h horizons with and without peak tracking on real data, the study shows that a 48 h rolling reference horizon yields the best economic performance, achieving cost reductions relative to a traditional EMPC benchmark. The approach is scalable, computationally tractable (convex optimization per step), and practical for real-time microgrid control, offering a path to lower monthly electricity costs in systems with demand charges.
Abstract
Monthly demand charges form a significant portion of the electric bill for microgrids with variable renewable energy generation. A battery energy storage system (BESS) is commonly used to manage these demand charges. Economic model predictive control (EMPC) with a reference trajectory can be used to dispatch the BESS to optimize the microgrid operating cost. Since demand charges are incurred monthly, EMPC requires a full-month reference trajectory for asymptotic stability guarantees that result in optimal operating costs. However, a full-month reference trajectory is unrealistic from a renewable generation forecast perspective. Therefore, to construct a practical EMPC with a reference trajectory, an EMPC formulation considering both non-coincident demand and on-peak demand charges is designed in this work for 24 to 48 h prediction horizons. The corresponding reference trajectory is computed at each EMPC step by solving an optimal control problem over 24 to 48 h reference (trajectory) horizon. Furthermore, BESS state of charge regulation constraints are incorporated to guarantee the BESS energy level in the long term. Multiple reference and prediction horizon lengths are compared for both shrinking and rolling horizons with real-world data. The proposed EMPC with 48 h rolling reference and prediction horizons outperforms the traditional EMPC benchmark with a 2% reduction in the annual cost, proving its economic benefits.
