Abstract
Managing Vehicle-to-Building (V2B) charging presents a complex optimization challenge involving high uncertainty, heterogeneous hardware, and long-term financial objectives. This paper introduces a novel Reinforcement Learning (RL) framework based on the Deep Deterministic Policy Gradient (DDPG) algorithm, enhanced with domain-specific action masking and guidance from a Mixed-Integer Linear Programming (MILP) optimizer. Evaluated on nine months of real-world data from a Nissan research facility, the proposed system effectively reduces building demand charges and total electricity costs while maintaining 100% reliability for electric vehicle (EV) users.
Introduction
Large commercial buildings face significant "demand charges"—fees based on the peak power usage recorded during a monthly billing cycle. Vehicle-to-Building (V2B) systems aim to mitigate these costs by utilizing the aggregated battery capacity of parked EVs to "shave" these peaks, discharging power during high-demand periods and recharging during low-demand intervals.
However, real-world implementation is hindered by several factors:
- Uncertainty: Stochastic arrival/departure times and initial states-of-charge (SoC).
- Heterogeneity: Coexistence of unidirectional and bidirectional chargers.
- Long Horizons: Decisions must account for peak demand targets that span an entire month.
- Continuous Action Spaces: Charging power levels are continuous rather than discrete.
Methodology
The core of the proposed solution is an enhanced RL agent utilizing the Deep Deterministic Policy Gradient (DDPG) algorithm. To bridge the gap between theoretical RL and industrial requirements, the authors implemented two key innovations:
- Action Masking: A layer of differentiable rules that prevents the agent from executing invalid actions (e.g., discharging an unplugged vehicle). This narrows the search space and accelerates learning.
- MILP-Driven Policy Guidance: During training, a Mixed-Integer Linear Programming (MILP) solver—which finds optimal solutions given perfect foresight—is used to provide "expert" demonstrations. These solutions are injected into the RL agent's replay buffer, guiding it toward high-quality strategies.
The framework also includes a Monthly Peak Power Estimator, which provides the agent with a long-term reference for the current billing period's maximum power draw, enabling more informed peak-shaving decisions.
Experimental Setup
The system was validated using high-fidelity data from Nissan’s research laboratory in Santa Clara, California, spanning May 2023 to January 2024. The environment consisted of:
- 15 Heterogeneous Chargers: 5 bidirectional and 10 unidirectional units.
- Diverse EV Fleet: Vehicles with 40 kWh and 62 kWh battery capacities.
- Real-world Inputs: Actual building power loads, charger logs, and EV telemetry.
Results and Discussion
The proposed RL approach was compared against several baselines, including "Fast Charge" (FC) and heuristics like Least Laxity First (LLF) and Earliest Deadline First (EDF).
Key Findings
- Cost Efficiency: The RL model achieved the lowest total electricity bills in 8 out of 9 months, closely approaching the performance of the "Oracle" MILP solver.
- Peak Shaving: The agent successfully reduced demand charges in most months. In instances where shaving was less pronounced, it was typically due to the building's base load being lower than the minimum required charging load.
- User Reliability: The system maintained a 100% success rate in meeting the required SoC for departing vehicles, ensuring no compromise to user convenience.
- Ablation Analysis: Removing action masking or MILP guidance resulted in significant performance degradation, confirming that these architectural enhancements are critical for handling the complexity of the V2B environment.
Conclusion
This research demonstrates that combining RL with traditional optimization and domain-specific constraints creates a robust system for V2B management. While the current model relies on conservative peak estimates, future work will explore integrating advanced building load forecasting to further optimize performance. Additionally, the scalability of this centralized controller to larger parking facilities remains a key area for future investigation.
Summary updated