Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 2.13 KB

README.md

File metadata and controls

41 lines (31 loc) · 2.13 KB

Ride-sharing-Simulator

A high-capacity ride-sharing simulator calibrated by real request datasets and road networks


Simulator Architecture

Updating...

  • 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

Setup

  1. Install dependencies and libraries
pip install -r requirements.txt
  1. Download Road Network into data filefold

Simulation

Run the demo

python simulation.py --cfg ./config/test.yaml  --DrawResult True

Simulation results

Demonstration for simulation results

Dispatching Algorithm


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).