Real-Time Order Assignment for Ride-Sharing Platforms with a Mixture of Pre-booked and On-Demand Requests

Abstract

This paper addresses the real-time order assignment problem for ride-sharing platforms that serve a combination of pre-booked and on-demand requests. We consider a dynamic setting where both request types arrive continuously, may involve shared or non-shared rides, and must be assigned online to optimize overall system performance. To effectively manage their heterogeneous characteristics and operational interplay, we introduce a sequential two-stage assignment mechanism – in each decision epoch, pre-booked orders are first assigned or reallocated among vehicles (pre-booked assignment stage), followed by the assignment of on-demand orders to the remaining available vehicles based on the updated system state (on-demand assignment stage). Building on this mechanism, we formulate a tailored Markov Decision Process (MDP) that embeds the proposed sequential two-stage assignment mechanism into the decision structure to explicitly capture the interactions between pre-booked and on-demand orders. A double deep Q-network (DDQN) is used to approximate vehicle-level action-values, and centralized assignments in both stages are obtained via bipartite matching under relevant feasibility constraints. We validate the proposed method through extensive numerical experiments, which demonstrate that our approach consistently outperforms both distance-based and myopic greedy baselines in terms of total system reward, while maintaining real-time computational efficiency. Notably, the two-stage mechanism with pre-booked order reassignment achieves a more favorable balance between pre-booked and on-demand services, yielding a 14% improvement in total reward compared to a DDQN variant without reassignment. Further, leveraging the developed framework, we examine the impacts of pre-booked service under varying penetration rates and advance booking times. The results reveal that, perhaps surprisingly, the effect of increasing pre-booked penetration on system-wide performance is non-monotonic and critically depends on both lead time and the proportion of pre-booked orders. When the advance booking time is short (e.g., 15 minutes), increasing the pre-booked penetration rate reduces the overall platform reward almost monotonically. Even when lead times are longer (e.g., 20–30 minutes), increasing penetration initially decreases total reward at low penetration levels (e.g., below 40%) before recovering as the share of pre-booked orders grows. This reveals a critical trade-off – while pre-booked orders provide valuable advance information, they also introduce additional service-guarantee requirements that can offset these benefits. This nuanced insight has not been addressed in previous work.

Publication
In Transportation Research Part C – Emerging Technologies