On-Trip Matching and Pricing for Shared Rides
Shared rides, which match compatible riders in one vehicle, have the potential to increase vehicle utilization and reduce congestion and emissions. However, this service has seen limited success outside dense urban areas due to insufficient matching opportunities. The dominant model in the literature, which we refer to as the pre-trip model, matches riders before dispatch using non-bipartite matching, and dispatches unmatched riders solo. In practice, augmenting this pre-trip matching mechanism with an on-trip matching phase, where riders initially dispatched solo can still match with later arrivals, can expand matching opportunities. Yet the addition of the on-trip phase complicates the dynamic matching problem, as riders' matching opportunities evolve as they travel: both the set of compatible riders and the value of matches can diminish as a rider progresses towards her destination. To address this challenge, we formulate a Markov decision process that tracks riders' evolving states and weighs immediate matches against future matching opportunities. Within this framework, we incorporate pricing decisions to maximize long-run average profit, where we develop a fluid relaxation for static pricing and use value function approximation for dynamic (state-dependent) pricing. Experiments using Chicago ridesharing data show that pre-trip matching performs well with concentrated demand, whereas on-trip matching is particularly beneficial in the sparse outskirts where operating shared rides is especially challenging. Across both static and dynamic pricing settings, adding on-trip matching increases platform profit and match rates while lowering average quoted prices, showing the value of capturing matching opportunities along the route when demand is too dispersed for effective pre-trip matching.