Contributed the Semi-on-Demand (SoD) hybrid fixed/flexible-route transit simulation and fleet control module to TUM-VT's open-source agent-based mobility simulation framework in Python.
FleetPy is an open-source, modular agent-based simulation framework in Python for on-demand and shared mobility services, developed and maintained by the Chair of Traffic Engineering and Control at the Technical University of Munich (TUM-VT).
During my visiting doctoral research at TUM, I developed and contributed the Semi-on-Demand (SoD) hybrid transit simulation, demand modeling, and fleet control module to the open-source FleetPy repository.
Integration of analytical service planning with the open-source FleetPy Semi-on-Demand (SoD) agent-based simulation module (Network, Traveler Demand, Fleet Control, and Fleet Simulation).
Key Contributions to FleetPy
Hybrid Fixed/Flexible-Route Fleet Control: Implemented batch assignment and insertion heuristics for vehicles transitioning between scheduled fixed-route checkpoints and on-demand flexible catchment zones.
Zonal Reinforcement Learning Control Interface: Built the simulation environment and zonal dispatching control hooks enabling Proximal Policy Optimization (PPO) policies to dynamically allocate shared autonomous vehicles across sub-zones.
Stochastic Multimodal Traveler Demand: Extended traveler booking and mode-choice models to evaluate walk-access fixed stops versus on-demand flexible pickups/drop-offs.
References
2026
Semi-on-demand off-peak transit services with shared autonomous vehicles — service planning, simulation, and analysis in Munich, Germany
Shared Autonomous Vehicles (SAVs) enable transit agencies to provide more agile and responsive services. This study investigates the implementation of semi-on-demand (SoD) hybrid-route services using SAVs on existing transit lines at off-peak hours, leveraging the additional capacity brought by lower operating costs of SAVs. SoD services combine the cost efficiency of fixed-route buses with the flexibility of on-demand services. SAVs first serve all scheduled fixed-route stops, then drop off and pick up passengers in the pre-determined flexible-route portion, and return to the fixed route. This study addresses three key questions: optimal fleet and vehicle sizes for peak-hour fixed-route services with SAVs, optimal off-peak SoD service planning, and service feasibility during a gradual transition from drivers to autonomous vehicles. The methodology combines analytical modeling for service planning with agent-based simulation for operational analysis. We examine ten bus routes in Munich, Germany and demonstrate that the lower operating costs of SAVs improve service quality through increased frequency and smaller vehicles, even in transition scenarios. At off-peak hours, SoD service satisfies up to 80% more requests and reduces generalized costs by up to 50% compared to traditional fixed routes. However, during transition, maintaining a mixed fleet heavily limits headway improvements, thereby limiting the benefits to short flexible-route lengths.
@article{ng_semi-on-demand_2025,title={Semi-on-demand off-peak transit services with shared autonomous vehicles — service planning, simulation, and analysis in {Munich}, {Germany}},volume={192},issn={0968-090X},doi={10.1016/j.trc.2026.105852},urldate={2026-07-26},journal={Transportation Research Part C: Emerging Technologies},author={Ng, Max T. M. and Engelhardt, Roman and Dandl, Florian and Volakakis, Vasileios and Mahmassani, Hani S. and Bogenberger, Klaus},month=nov,year={2026},keywords={Agent-based simulation, Flexible route, Semi-on-demand, Shared autonomous mobility service, Transit feeder},pages={105852},}
2024
Semi-on-Demand Transit Feeders with Shared Autonomous Vehicles and Reinforcement-Learning-Based Zonal Dispatching Control
This paper develops a semi-on-demand transit feeder service using shared autonomous vehicles (SAVs) and zonal dispatching control based on reinforcement learning (RL). This service combines the cost-effectiveness of fixed-route transit with the adaptability of demand-responsive transport to improve accessibility in lower-density areas. Departing from the terminus, SAVs first make scheduled fixed stops, then offer on-demand pick-ups and drop-offs in a pre-determined flexibleroute area. Our deep RL model dynamically assigns vehicles to subdivided flexible-route zones in response to real-time demand fluctuations and operations, using a policy gradient algorithm — Proximal Policy Optimization. The methodology is demonstrated through agent-based simulations on a realworld bus route in Munich, Germany. Results show that after efficient training of the RL model, the semi-on-demand service with dynamic zonal control serves 16% more passengers at 13% higher generalized costs on average compared to traditional fixed-route service. The efficiency gain brought by RL control brings 2.4% more passengers at 1.4% higher costs. This study not only showcases the potential of integrating SAV feeders and machine learning techniques into public transit, but also sets the groundwork for further innovations in addressing firstmile-last-mile problems in multimodal transit systems.
@inproceedings{ng_rl_itsc_2024,address={Edmonton, AB, Canada},title={Semi-on-{Demand} {Transit} {Feeders} with {Shared} {Autonomous} {Vehicles} and {Reinforcement}-{Learning}-{Based} {Zonal} {Dispatching} {Control}},isbn={979-8-3315-0592-9},doi={10.1109/ITSC58415.2024.10920214},language={en},urldate={2025-03-23},booktitle={2024 {IEEE} 27th {International} {Conference} on {Intelligent} {Transportation} {Systems} ({ITSC})},publisher={IEEE},author={Ng, Max T.M. and Engelhardt, Roman and Dandl, Florian and Mahmassani, Hani S. and Bogenberger, Klaus},month=sep,year={2024},pages={2863--2868},}