Abstract
We tackle the challenge of learning to charge Electric Vehicles (EVs) with Out-of-Distribution (OOD) data. Traditional scheduling algorithms typically fail to balance near-optimal average performance with worst-case guarantees, particularly with OOD data. Model Predictive Control (MPC) is often too conservative and data-independent, whereas Reinforcement Learning (RL) tends to be overly aggressive and fully trusts the data, hindering their ability to consistently achieve the best-of-both-worlds. To bridge this gap, we introduce a novel OOD-aware scheduling algorithm, denoted OOD-Charging. This algorithm employs a dynamic "awareness radius", which updates in real-time based on the Temporal Difference (TD)-error that reflects the severity of OOD. The OOD-Charging algorithm allows for a more effective balance between consistency and robustness in EV charging schedules, thereby significantly enhancing adaptability and efficiency in real-world charging environments. Our results demonstrate that this approach improves the scheduling reward reliably under real OOD scenarios with remarkable shifts of EV charging behaviors caused by COVID-19 in the Caltech ACN-Data.
Introduction
Scheduling electric vehicle (EV) charging—particularly at solar-powered workplace stations—is a complex balancing act. Operators must navigate two primary sources of uncertainty: volatile renewable energy generation and unpredictable human behavior. Current solutions generally fall into two camps, both with significant flaws. Traditional Model Predictive Control (MPC) methods are robust and provide safety guarantees but are often data-independent and overly conservative, leading to sub-optimal average performance. Conversely, Reinforcement Learning (RL) excels at finding optimal patterns in training data but is "brittle"; when real-world data distributions shift (Out-of-Distribution, or OOD), RL performance often collapses because the agent over-trusts its outdated training.
This paper introduces OOD-CHARGING, a learning-augmented scheduling algorithm designed to achieve the "best-of-both-worlds": near-optimal efficiency when conditions are predictable and guaranteed robustness when the environment changes.
The OOD-CHARGING Framework
The core innovation of OOD-CHARGING is its ability to use RL and MPC simultaneously through a dynamic "awareness radius" ($R_t$). This radius is governed by the Temporal Difference (TD)-error, which measures the discrepancy between an RL agent's expectations and real-world outcomes.
As shown in the architecture above, the algorithm takes the action suggested by the RL policy and projects it onto a safety ball centered around the MPC baseline action. If the TD-error is low (indicating the world matches training data), the awareness radius grows, allowing the RL agent more freedom to optimize. If the TD-error is high (indicating an OOD event), the radius shrinks, forcing the system to stick closely to the safe MPC baseline. This creates a continuous, automated bridge between machine learning and classical control theory.
Real-World OOD Scenarios
To validate the algorithm, the study utilized the Caltech ACN-Data, a public dataset from an Adaptive Charging Network. The researchers specifically focused on the period from September 2018 to September 2021 to capture the massive distribution shifts caused by the COVID-19 pandemic.
These shifts included radical changes in arrival times, energy demand, and stay durations. To further test the system, the researchers supplemented this with synthetic solar injection data, modeling transitions from sunny to rainy periods to simulate weather-driven OOD events.
Key Results and Insights
Experimental results demonstrate that OOD-CHARGING significantly outperforms standalone methods:
- Superior Rewards: In simulations transitioning from pre-COVID to post-COVID periods, OOD-CHARGING achieved higher average rewards than pure MPC and significantly higher rewards than pure RL.
- Enhanced Stability: While pure RL showed massive performance degradation during OOD events, OOD-CHARGING maintained a much lower standard deviation in rewards. For instance, the standard deviation for pure RL was nearly 4x higher than the OOD-aware version during post-COVID periods.
- Automated Trust: By using TD-error as an OOD detector, the system self-corrects without needing manual intervention or human flagging of environmental shifts.
Conclusion and Future Work
OOD-CHARGING provides a robust framework for managing the uncertainties of renewable-powered EV infrastructure. While the current study utilizes linearized dynamics, future work will explore complex, non-linear grid constraints and the deployment of the algorithm on physical charging hardware to verify performance in live electrical environments.
Summary updated