A high-capacity ride-sharing simulator calibrated by real request datasets and road networks
- Implement dispatching and repositioning algorithms of ride-sharing and ride-sourcing
- Add traffic flow models to measure traffic congestion, speed, and carbon emissions
- Implement 2D visualization
- Provide implementation for Reinforcement Learning algorithms
- Provide implementation for car-following models
- Provide implementation for highly realistic 3D visualization
- Install dependencies and libraries
pip install -r requirements.txt
- Download Road Network into data filefold
python simulation.py --cfg ./config/test.yaml --DrawResult True
Dispatching Algorithm. (a) Passengers are preassigned to vehicles within their matching areas; then (b) each vehicle will be potentially scheduled with multiple passengers. (c) The platform checks the shareability of each vehicle's potential passengers by planning the shortest routes and verifying pickup and detour time constraints, e.g., Passengers 1 and 2 can share Vehicle 1, but Passengers 2 and 3 cannot share Vehicle 2 due to the detour time constraint. (d) RTV-graph can be established to connect all potential trips (including one or more requests) to vehicles. (e) The optimal matching results are obtained via ILP. (f) Vehicles pick up and deliver passengers according to the matching results of (e) and the planned shortest routes of (c).