Introduction
As battery electric vehicles (BEVs) become the standard for personal transport, the focus of infrastructure research has shifted from "range anxiety"—the fear of running out of energy—to "charging anxiety." This concern stems from the unpredictable nature of charging stations: long queues and fluctuating power delivery can turn a planned 30-minute stop into a multi-hour delay. Traditional navigation systems often treat charging parameters as static or deterministic, failing to account for the stochastic reality of the grid and station occupancy.
This paper addresses the challenge of long-distance BEV navigation by framing charging station selection as a Combinatorial Semi-Bandit problem. We propose a framework that learns the latent distributions of queue times and charging speeds through experience, optimizing travel routes in real-time to minimize total trip duration.
Methodology
The Feasibility Graph
A primary challenge in applying multi-armed bandit (MAB) frameworks to road networks is the sheer scale of the search space. Standard road graphs contain millions of edges, making complex optimization computationally prohibitive. To solve this, we transform the road network into a Feasibility Graph.
In this graph, nodes represent charging stations, and edges represent the shortest reachable paths between them, given the vehicle's current battery capacity and consumption model. By pre-computing these reachable connections, we reduce the problem from a massive Resource-Constrained Shortest Path Problem (which is NP-complete) to a manageable graph search. This abstraction allows our algorithms to focus on the decision-making process—choosing which chargers to visit—rather than the low-level routing between them.
Bayesian Modeling of Stochastic Variables
We model two primary sources of uncertainty at each charging station:
- Queue Times: Modeled using a one-parameter exponential distribution.
- Charging Power: Modeled using a two-parameter gamma distribution.
A key contribution of this work is the use of conjugate priors for these distributions. This allows the system to update its beliefs about a station’s performance analytically and efficiently after each visit. While conjugate priors for exponential distributions are common, our application of a conjugate prior for the two-parameter gamma distribution represents a novel entry in the multi-armed bandit literature.
Learning Algorithms
We adapted three classic bandit strategies to the combinatorial setting:
- Thompson Sampling (TS): A Bayesian approach that samples from the posterior distributions of each station's parameters to choose a path.
- BayesUCB: A strategy that uses upper confidence bounds derived from the posterior to encourage exploration of potentially high-performing stations.
- Epsilon-Greedy: A simpler heuristic that chooses the best-known path most of the time but explores a random path with a fixed probability.
Experimental Setup
The framework was evaluated using large-scale simulations across the road networks of Norway, Sweden, and Finland. Data was integrated from:
- OpenStreetMap for topological road data.
- Open Charge Map for charging station locations and technical specifications.
We simulated long-distance routes, such as Gothenburg to Stockholm and Oslo to Trondheim, to observe how the algorithms learned over thousands of repeated trips.
Results and Discussion
The performance was measured using Cumulative Regret, defined as the difference in travel time between the algorithm's choice and the optimal choice made by an "oracle" with perfect knowledge of all station distributions.
Key Findings
- Sub-linear Regret: Both Thompson Sampling and BayesUCB achieved sub-linear regret, indicating that the system successfully learns the optimal charging strategy over time. Thompson Sampling slightly outperformed BayesUCB due to its more effective exploration of the network's stochastic edges.
- The Cost of Randomness: Epsilon-greedy performed poorly in this spatial context. In a country-sized road network, a "random" exploration step can lead to massive detours, resulting in high regret that the algorithm struggles to recover from.
- Importance of Power Variance: Our results highlight that the variance in charging power is often a more significant factor in total travel time than driving speed. By explicitly modeling this variance, our framework provides more reliable arrival estimates than deterministic models.
Limitations and Future Work
While the current framework provides a robust foundation, several areas for extension remain. Currently, the model assumes that charging stations are independent; however, spatial or temporal correlations could be modeled in the future. Additionally, the model currently assumes a fixed charging target (e.g., 80%). Extending the graph to include "energy levels" as part of the state space would allow for "splash and dash" strategies, where drivers only charge as much as needed to reach the next optimal station. Finally, moving toward Contextual Bandits would allow the integration of real-time variables like ambient temperature and traffic conditions.
Conclusion
By combining combinatorial optimization with Bayesian learning, this framework offers a scalable solution to the uncertainties of EV travel. It demonstrates that "charging anxiety" can be mitigated through intelligent exploration, turning every trip into an opportunity to refine the collective understanding of the charging infrastructure.
Summary updated