NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Model-Based Vehicle-Relocation Decisions for Real-Time Ride-Sharing: Hybridizing Learning and Optimization

Enpeng Yuan, Pascal Van Hentenryck

Introduction

Ride-sharing platforms face a constant battle against asymmetric demand. During peak hours, vehicles naturally gravitate toward high-activity hubs, leaving residential or peripheral areas underserved. To maintain service quality, platforms must proactively relocate idle vehicles. However, determining optimal relocation strategies over long time horizons is a computationally intensive task. This paper presents a novel hybrid framework that combines deep learning with classical optimization to solve this NP-hard problem in milliseconds, significantly improving system efficiency.

The Challenge of Real-Time Relocation

Modern ride-hailing networks often employ Model Predictive Control (MPC) to manage vehicle supply. By forecasting future demand, MPC can move idle cars to where they will be needed next. The ideal MPC would look far into the future (e.g., a 30-minute horizon), but the underlying mathematical formulation—a Mixed-Integer Linear Program (MILP)—is NP-hard.

In a live production environment, decisions must be made every few seconds. Because a high-fidelity MILP solver cannot guarantee a solution within this tight window, operators are typically forced to use "myopic" short-horizon models. While these run quickly, they lead to suboptimal vehicle placement and increased rider wait times.

A Hybrid Learning-Optimization Approach

The authors propose a four-step pipeline that replaces the slow real-time MILP solver with a "DNN-OPT" hybrid model. This approach effectively "memorizes" the behavior of a high-fidelity, long-horizon MPC offline and reproduces it rapidly online.

  1. Aggregation: Instead of predicting complex zone-to-zone routes, the model predicts the total number of vehicles entering and leaving each zone. This reduces the output dimensionality from $|Z|^2$ to $2|Z|$, making the learning task more manageable.
  2. Learning: A Deep Neural Network (DNN) is trained to map current demand and supply states to these aggregated relocation targets. To handle the sparse, long-tail nature of relocation data, the authors use specialized loss-weighting techniques.
  3. Feasibility Restoration: To ensure the DNN's outputs are physically possible, the system rounds predictions to integers and enforces flow-balance constraints (e.g., a zone cannot relocate more cars than it currently holds).
  4. Disaggregation: The feasible aggregated predictions are converted back into specific routes using a classic Transportation Optimization problem. Because this step is a totally unimodular linear program, it can be solved in polynomial time.
The hybrid pipeline interleaves batch requests with rapid MPC and route optimization (RO) steps.

Experimental Evaluation

The framework was evaluated using the New York City Yellow Taxi dataset (Manhattan area). Training data spanned 2015–2016, with February 2017 used for testing. Performance was measured using the A-RTRS ride-sharing simulator, comparing the hybrid DNN-OPT model against a standard dispatcher and MPC models with varying horizons (MPC-2 for short-horizon and MPC-6 for long-horizon).

Results and Impact

The hybrid approach demonstrates remarkable efficiency and effectiveness. The disaggregation step takes an average of just 0.02 seconds, allowing the entire relocation plan to be generated well within the 5-second real-time limit.

Most importantly, the DNN-OPT model successfully mimics the performance of the computationally expensive MPC-6 model. By enabling long-horizon planning in real-time, the hybrid approach achieves a 27% further reduction in average rider waiting time compared to the computationally feasible MPC-2 baseline.

Average waiting time across different demand levels, showing DNN-OPT (green) closely matching the high-fidelity MPC-6 (orange) and outperforming the real-time MPC-2 (blue).

Conclusion

By hybridizing machine learning and optimization, this research provides a blueprint for solving complex combinatorial problems in real-time systems. The DNN-OPT framework bypasses the NP-hard bottleneck of traditional solvers, delivering high-fidelity strategic planning at the speed required for modern ride-sharing. Future work aims to extend this methodology to other dynamic platform decisions, such as real-time pricing.

Summary updated

BibTeX
@misc{yuan2021learning,
  author = {Enpeng Yuan and Pascal Van Hentenryck},
  title = {{Learning Model-Based Vehicle-Relocation Decisions for Real-Time Ride-Sharing: Hybridizing Learning and Optimization}},
  year = {2021},
  eprint = {2105.13461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.13461},
}
Figure