Online Relocating and Matching of Ride-Hailing Services: A Model-Based Modular Approach

Chang Gao, Xi Lin, Fang He, Xindi Tang · DOI

TL;DR

The Model-Based Modular Approach (MMA) is a new two-layer framework that simultaneously optimizes rider-to-driver matching and proactive vehicle relocation. By separating long-term strategic planning from real-time execution, MMA outperforms reinforcement learning methods in both efficiency and robustness while remaining fully interpretable and scalable to thousands of vehicles.

What Problem Does This Paper Address?

Ride-hailing platforms like Uber or Didi face a constant "spatiotemporal imbalance": demand for rides rarely matches the supply of available drivers in the same place at the same time. This leads to two major inefficiencies:

  1. The "Wild Goose Chase": Drivers travel long distances to pick up passengers because no one is nearby.
  2. Supply Gaps: High-demand areas are left unserved while drivers sit idle in low-demand zones.

Existing solutions usually fall into two camps: batch matching (which is often myopic and only looks at the immediate next few seconds) or Reinforcement Learning (RL). While RL can be "farsighted," it often acts as a "black box," requires massive amounts of training data, and can be brittle when faced with unexpected events like a sudden concert or a rainstorm. The authors aim to create a system that is farsighted, scalable, and—crucially—interpretable.

Methods

The authors propose a two-layer modular structure:

  • The Strategic (Upper) Layer: This layer looks at the "big picture" over a 5-to-15-minute horizon. It uses Lasso regression to predict future demand and supply. It then formulates a Mixed-Integer Linear Programming (MILP) problem to determine the ideal flow of vehicles across the city to maximize total profit (revenue minus relocation costs). To make this solvable in real-time, they developed a customized Lagrangian-relaxation (LR) algorithm that provides near-optimal solutions very quickly.
  • The Execution (Lower) Layer: This layer handles the "nitty-gritty" every few seconds. It takes the guidance from the strategic layer and performs the actual vehicle-to-order matching. It uses two specialized polynomial-time algorithms: Matching Vehicle Allocation (MVA) and Vehicle and Order Matching (VOM).

The "modular" aspect means the prediction component can be swapped out for any model (e.g., a deep neural network) without changing the optimization logic, making the system highly flexible.

Datasets

The researchers evaluated MMA using two distinct environments:

  1. A 3-Node Toy Network: Used for controlled experiments to prove the theoretical properties of the algorithm and visualize vehicle flows.
  2. Chengdu Realistic Dataset: A massive real-world dataset from Chengdu, China, provided by the Gaode (Amap) platform. This includes vehicle trajectories, order requests (origin/destination/time), and driver states (vacant/occupied/offline).

Key Insights and Ideas

  • Interpretability is a Feature, Not a Bug: Unlike RL agents that make decisions based on opaque "value functions," MMA’s decisions are based on explicit spatial transfer patterns. This allows platform operators to understand why a vehicle is being relocated.
  • Decoupling Strategy from Execution: By having the upper layer provide "guidance" rather than "strict commands," the lower layer can still respond to immediate local needs (like a passenger appearing right next to a car) while staying aligned with long-term goals.
  • Robustness to "Black Swans": Because MMA is model-based rather than purely data-driven, it handles "irregular events" (sudden demand spikes not seen in training data) much better than RL. It simply updates its prediction and re-optimizes the flow, whereas an RL model might rely on historical patterns that no longer apply.
  • Zero Optimality Gap: The authors theoretically prove that in simplified "stylized" networks, their Lagrangian-relaxation approach achieves the global optimum, providing a strong mathematical foundation for its real-world performance.

Key Results

  • Completion Rates: In the Chengdu simulation, MMA increased the request completion rate by 10.79% compared to standard batch matching.
  • Vs. Reinforcement Learning: MMA outperformed state-of-the-art RL methods by over 3.09% in completed requests, while using significantly less computational overhead for training.
  • Handling Irregular Events: When "shock" demand was added to the simulation (simulating a sudden event), MMA increased completed requests by 4.69% over RL-based methods, proving its superior robustness.
  • Scalability: The LR-based solver for the strategic layer was roughly 3x faster than commercial solvers like CPLEX, making it viable for city-scale online operations.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Homogeneity: The current model assumes all drivers and passengers behave similarly. In reality, drivers have individual preferences for where they want to work or when they want to go offline.
  • Multi-homing: The paper doesn't account for "multi-homing," where drivers or passengers switch between multiple apps (e.g., Uber and Lyft) simultaneously.
  • Future Directions: The authors suggest extending this modular framework to other "demand-responsive" transit systems, such as dynamically routed micro-buses or integrated multi-modal transport hubs.

Summary updated

BibTeX
@inproceedings{gao2024online,
  author = {Chang Gao and Xi Lin and Fang He and Xindi Tang},
  title = {{Online Relocating and Matching of Ride-Hailing Services: A Model-Based Modular Approach}},
  booktitle = {Transportation},
  year = {2024},
  doi = {10.1016/j.tre.2024.103600},
}
Figure