This is the code for paper "CoopRide: Cooperate All Grids in City-Scale Ride-Hailing Dispatching with Multi-Agent Reinforcement Learning"
conda create -n CoTa python=3.9
conda activate CoTa
pip install -r requirements.txt- Command to run our method
cd run
python run_CoTa.py- Command for baselines
cd run
python run_MAPPO.py
python run_IPPO.py
python run_mdp.py- You can visualize the learning curves by tensorboard.
tensorboard --logdir logs- You can visualize the cooperation intensity, city map and demand-supply heat map by following jupyters.
plot/plot_grid.ipynb
plot/grid_map.ipynb
plot/plot_meta.ipynb