Papers
Topics
Authors
Recent
2000 character limit reached

Graph Theory Trip-Vehicle Matching

Updated 15 November 2025
  • The paper introduces a graph theory-based matching mechanism that models ride-pooling as a combinatorial optimization problem using shareability hypergraphs.
  • It leverages two polynomial-time algorithms—LSLPR and MMO—to approximate integer programming solutions with proven approximation guarantees.
  • Empirical results on real-world data demonstrate scalability, near-optimal performance, and effective handling of heterogeneous fleet and stochastic demands.

A graph theory-based trip–vehicle matching mechanism is a combinatorial optimization framework that models the assignment of transportation requests (trips) to vehicles via the formalism of graphs or hypergraphs, enabling mathematically rigorous and scalable solutions to ride-pooling, ride-sharing, and mobility assignment problems. This paradigm is central to the design of high-capacity shared mobility systems and mixed fleets, allowing the systematic encoding of spatio-temporal, operational, and user-type constraints, as well as algorithmic exploitation of structural sparsity and approximation regimes.

1. Shareability Hypergraph Model

At the core of advanced ride-pooling assignment is the shareability hypergraph. In this model:

  • Vertex sets are partitioned into supply vertices (vehicles, S) and demand vertices (trip requests, D). Vehicles themselves are further divided into classes: Sₐ (“augmented,” e.g., costly automated vehicles) and S_b (“basis,” e.g., low-cost or zero-cost vehicles).
  • Hyperedges represent feasible pooled trips; each hyperedge e={i}Je = \{i\} \cup J corresponds to a vehicle ii assigned to trip subset JDJ \subset D, with JCi|J| \leq C_i (vehicle capacity). The hyperedge cardinality e|e| is bounded by p=1+maxiCip = 1+\max_i C_i.
  • Feasibility is strictly enforced. A hyperedge exists only if, for some passenger ordering tt, the vehicle can reach all pickups within their waiting-time bounds ωj\omega_j, deliver all dropoffs within their detour limits rjr_j, and meet vehicle-type/customer-type preferences and penalties.

This hypergraph structure compactly encodes all combinatorially allowed vehicle–trip groupings, and is essential for capturing the high-dimensional constraints of ride-pooling at scale.

2. Integer Programming Formulation of the Assignment Problem

The assignment problem is formally modeled as a two-stage stochastic integer program over the shareability hypergraph:

  • First stage: Select up to KK augmented vehicles yi{0,1}y_i \in \{0,1\}, with iSαyiK\sum_{i \in S_\alpha} y_i \leq K.
  • Second stage (scenario-based): Given revealed trip requests D(ξ)D(\xi) and their induced hyperedges E(ξ)E(\xi) in scenario ξ\xi, solve

Q(y,ξ)=maxxeE(ξ)vexeQ(y, \xi) = \max_{x} \sum_{e \in E(\xi)} v_e x_e

subject to: - Each trip is matched at most once: ejxe1\sum_{e \ni j} x_e \leq 1, jD(ξ)\forall j \in D(\xi) - Supply constraints: eixeyi\sum_{e \ni i} x_e \leq y_i for iSαi \in S_\alpha, 1\leq 1 for iSbi \in S_b - xe{0,1}x_e \in \{0,1\}.

  • Hyperedge utility vev_e aggregates fares, bonuses/penalties for vehicle-type, and routing/travel costs.
  • The optimization maximizes the expectation over scenarios, replaced in practice with a sample-average approximation (SAA) over NN sampled demand instances:

maxy1N=1NQ(y,ξ)\max_{y} \frac{1}{N} \sum_{\ell=1}^N Q(y, \xi_\ell)

This formulation is an instance of the Generalized Assignment Problem (GAP) on a hypergraph, where shareability constraints, vehicle heterogeneity, and operational cost structures are incorporated exactly.

3. Approximation Algorithms for Polynomial-Time Assignment

Solving the above integer program directly is computationally infeasible for realistic pp and S|S|, demanding scalable approximation algorithms. Two polynomial-time schemes are developed:

3.1 Local-Search LP-Relaxation (LSLPR) for Mid-Capacity Vehicles

  • Algorithmic steps:

    • Arbitrary initialization of KK-vehicle subset SRS_R.
    • Iteratively swap an included vehicle ii^- for an excluded i+i^+ if the LP-relaxed objective v^(S)\hat{v}(S') increases by more than an ε\varepsilon-fraction.
    • Solve the LP relaxation for each candidate SS':

    v^(SR)=1N=1NLP-solution for scenario ξ\hat{v}(S_R) = \frac{1}{N} \sum_{\ell=1}^N \text{LP-solution for scenario } \xi_\ell - Iterate until local optimality. - For each scenario, apply a simple greedy $1/p$-rounding of the relaxed solution xx to yield an integral matching of value at least (1/p)v^(SR)(1/p)\hat{v}(S_R).

  • Approximation guarantee: This method achieves a 1p2\frac1{p^2}-approximation ratio, i.e., $\hat{v}(S_R_{\text{final}}) \geq \frac{1}{p^2}$ of optimal.

3.2 Max–Min Online (MMO) for High-Capacity Vehicles

  • Algorithmic steps:

    • The objective is converted to a covering LP with row-sparsity pp,

    v^(SR)=minu0ξgGug,ξ\hat{v}(S_R) = \min_{u \geq 0} \sum_{\xi}\sum_{g \in G} u_{g, \xi}

    subject to geug,ξve/N\sum_{g \in e} u_{g, \xi} \geq v_e/N for all eE(ξ)e \in E(\xi). - A greedy max–min dual process selects KK blocks (vehicles) to maximize the covering value, using an O(logp)O(\log p)-competitive online covering update. - Rounding via the Feige–Jain–Mirrokni max–min greedy achieves an approximation ratio e1(2e+o(1))plnp\approx \frac{e-1}{(2e + o(1)) p \ln p}.

Complexity: Both algorithms scale polynomially in the fleet and demand sizes, number of scenarios MM, hypergraph width pp, and 1/ε1/\varepsilon.

4. Computational Complexity and Empirical Performance

Let nα=Sαn_\alpha=|S_\alpha|, nb=Sbn_b=|S_b|, m=Dm=|D|, M=M= number of scenarios, EE = number of hyperedges per scenario, p=p= maximum edge size.

  • LSLPR: O((nαK)KMTLP#iter)O((n_\alpha-K)KMT_{LP} \cdot \#\text{iter}), with TLPT_{LP} polynomial in EE and pp; iteration count O(pK2log(vmax/vmin)/ε)O(p K^2 \log (v_{max}/v_{min})/\varepsilon).
  • MMO: O(KnαMEpolylog(p))O(K n_\alpha M E\, \text{polylog}(p)).

Empirical evaluation (NYC taxi data, mixed automation, rolling-horizon batches 15 min, p10p \approx 10 high-capacity) demonstrates:

  • Both LSLPR and MMO solve in seconds, compared to hours for exact MIP.
  • Optimality gap for high capacity is <1%<1\%; for mid-capacity (p4p \leq 4), <0.1%<0.1\% and speedup >10×>10\times versus exact methods.
  • Gaps are stable across pp, sample size, and cost distributions.

5. Extensions to Mixed and Partitioned Fleets

The mechanism naturally handles heterogeneous fleets:

  • Vehicle classes: Divided into Sₐ and S_b, with possible further subdivisions when more types exist. Partition/matroid constraints iSαtyiKt\sum_{i \in S_\alpha^t} y_i \leq K_t for each type tt.
  • Hyperedge utility: vev_e captures type-based customer preferences, different speeds, and operational zone restrictions (e.g., AV-only regions).
  • The algorithmic framework and approximation ratios extend without substantive loss with these constraints, preserving polynomial-time tractability.

6. Practical Implementation and Deployment Considerations

For deployment in city-scale mobility platforms:

  • Hypergraph construction may involve millions of candidate pooling sets; implementation must leverage problem sparsity, stateful subgraph enumeration, and per-scenario batching.
  • LP-relaxation and rounding are efficiently handled for p5p \leq 5; dual-based covering algorithms scale to larger pp given streaming or parallelized update regimes.
  • Scenario-based sample average approximation replaces stochastic expectations, making the solver responsive to real-time forecasted demand data.
  • Fleet activation decisions are made at slow (pre-shift or hourly) horizons, while assignment and rounding occur on rolling, sub-minute windows.

Key empirical findings: The two-stage, hypergraph-based approach delivers near-optimal, operationally feasible trip–vehicle assignments with strict adherence to ride-pooling constraints, while scaling to demand and fleet sizes that are otherwise intractable with monolithic integer programming.

7. References and Theoretical Underpinnings

The local search LP relaxation leverages the techniques of Arkin–Hassin (1998) and Fleischer–Goemans–Mirrokni–Sviridenko (2006), while the online covering/primal–dual tools derive from Buchbinder–Naor (2009, 2014). The max–min block selection argument is grounded in Feige–Jain–Mirrokni (2007) and Gupta–Nagarajan–Ravi (2015) for partitioned generalizations.

These methodologies constitute a unified, rigorously analyzable, and implementation-ready description of the hypergraph construction, two-stage stochastic matching, algorithmic approximations, runtime guarantees, and empirical system performance in complex, dynamic mobility assignments.

Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Graph Theory-Based Trip-Vehicle Matching Mechanism.