Co-Optimizing Distributed Energy Resources under Demand Charges and Bi-Directional Power Flow
Ruixiao Yang, Gulai Shen, Ahmed S. Alahmed, Chuchu Fan
TL;DR
The paper tackles co-optimizing behind-the-meter DERs—flexible demand, renewable DG, and BESS—under a bi-directional NEM tariff with demand charges using a stochastic dynamic program. It proves a threshold structure for the optimal policy and demonstrates that a simple threshold algorithm can be effective, while reinforcement learning (PPO) closely approaches the optimal benchmark on real-world data. A nonlinear program provides an exact reference, and extensive simulations show substantial surplus gains for PPO over baselines, with the threshold method performing well under certain conditions. The work offers practical guidance for designing prosumer energy management systems under complex tariffs by leveraging policy structure and data-driven learning.
Abstract
We address the co-optimization of behind-the-meter (BTM) distributed energy resources (DER), including flexible demands, renewable distributed generation (DG), and battery energy storage systems (BESS) under net energy metering (NEM) frameworks with demand charges. We formulate the problem as a stochastic dynamic program that accounts for renewable generation uncertainty and operational surplus maximization. Our theoretical analysis reveals that the optimal policy follows a threshold structure. Finally, we show that even a simple algorithm leveraging this threshold structure performs well in simulation, emphasizing its importance in developing near-optimal algorithms. These findings provide crucial insights for implementing prosumer energy management systems under complex tariff structures.
