Introduction
The transition to Electric Bus (EB) fleets is a cornerstone of sustainable urban transit. However, managing these fleets presents significant operational challenges. Operators must balance charging schedules with trip assignments while navigating real-world uncertainties such as fluctuating electricity prices and traffic-induced delays. Traditional optimization methods often struggle with the "curse of dimensionality" as fleet sizes grow and fail to adapt to the stochastic nature of urban environments.
The Challenge: Uncertainty and Scalability
Scheduling EB charging involves two primary hurdles:
- Uncertainty: Traffic conditions affect travel times and energy consumption, while "smart grid" electricity prices vary throughout the day. Static models often lead to suboptimal performance when reality deviates from forecasts.
- Complexity: Decisions occur at different timescales. Assigning a bus to a multi-hour trip is a high-level "coarse" decision, whereas adjusting charging power every few minutes to minimize costs is a low-level "fine" decision.
As shown in Figure 1, an EB alternates between operating on routes and layovers at terminal stations. During layovers, the system must decide whether to charge, how much power to draw, or even whether to sell power back to the grid (V2G). The status $B_{i,t}$ tracks these transitions, which are fundamental to the proposed hierarchical model.
Proposed Framework: DAC-MAPPO-E
To address these challenges, the authors propose DAC-MAPPO-E, a Hierarchical Deep Reinforcement Learning (HDRL) framework based on the Double Actor-Critic (DAC) architecture. This approach decouples the problem into two levels:
- High-Level (Manager): Handles discrete, long-term decisions such as charger allocation and trip assignment. These decisions persist over variable time periods (options).
- Low-Level (Worker): Manages continuous, short-term decisions, specifically the charging/discharging power for each bus at every time step, incorporating Vehicle-to-Grid (V2G) capabilities.
Key Innovations
- Temporal Abstraction: By treating trip assignments as "options" that span multiple time steps, the agent avoids getting bogged down in minute-to-minute fluctuations when planning long-term routes.
- Attention Mechanism: To ensure scalability, the high-level actor employs an attention layer. This allows the agent to focus on the most relevant global information (e.g., which buses need charging most urgently) without the computational cost of processing every vehicle's state simultaneously.
- Multi-Agent Coordination: The low level utilizes Multi-Agent Proximal Policy Optimization (MAPPO) to allow buses to coordinate their power draw effectively.
Comparison with Existing Literature
The proposed framework fills several gaps in current research. While previous studies have addressed parts of the problem, DAC-MAPPO-E is the first to integrate all critical features for real-world deployment, including V2G and joint trip optimization under price uncertainty.
As illustrated in Figure 2, this work uniquely combines uncertainty modeling in electricity prices, V2G functionality, and joint optimization of trip assignments within a DRL-based, multi-timescale framework.
Experimental Results
The model was validated using real-world data, including electricity prices from the Midcontinent Independent System Operator (MISO) and bus schedules from Guelph Transit, Ontario.
- Near-Optimal Efficiency: DAC-MAPPO-E achieved costs within 0.18% to 0.32% of an "Oracle" solution (a MILP model with perfect future knowledge), demonstrating its high efficiency.
- Scalability: In a 20-bus scenario, the attention-enhanced version significantly outperformed standard DRL models, maintaining fast convergence and superior cost-saving performance.
- Robustness: The agent learned to maintain a "buffer" in the State of Charge (SoC), ensuring that buses could handle unexpected traffic delays without running out of power—a common failure point for deterministic scheduling models.
Conclusion
DAC-MAPPO-E provides a robust, scalable solution for the complex task of EB fleet management. By leveraging hierarchical reinforcement learning and attention mechanisms, it successfully navigates the trade-offs between long-term planning and real-time power control under uncertainty. Future work will look into multi-depot systems and more complex battery degradation models to further enhance real-world applicability.
Reference: Qi, J., Lei, L., Jonsson, T., & Niyato, D. (2025). Optimizing Electric Bus Charging Scheduling with Uncertainties Using Hierarchical Deep Reinforcement Learning. arXiv:2505.10296v1.
Summary updated