Skip to main content
  1. My writings/

Under the Hood: Quiki's Advanced Ride-Matching Algorithm

As a technology consultant working on Quiki, I’m thrilled to share insights into one of the most crucial components of our platform: the advanced ride-matching algorithm. This sophisticated system is designed to solve complex multi-vehicle, multi-request routing problems in real-time, ensuring efficient and optimal ride-sharing experiences.

The Challenge: Multi-Vehicle, Multi-Request Routing #

Our algorithm addresses three main ride-sharing challenges:

  1. Compute an optimal assignment of multiple ride requests to multiple vehicles with given capacities.
  2. Allow for continuous operation and assignment of incoming requests to a fleet of vehicles.
  3. Enable rebalancing of the vehicle fleet to meet demand efficiently.

Key Components of the Algorithm #

1. Pairwise Request-Vehicle (RV) Graph #

The first step involves computing:

  • Which requests can be combined, considering both origin and destination.
  • Which vehicles can serve which requests individually, given their current passengers.

2. Request-Trip-Vehicle (RTV) Graph #

This step explores the RV graph to find “trips” - groups of requests that can be combined and picked up by a vehicle while satisfying all constraints. A single request may be part of several potential trips, and a trip might have multiple candidate vehicles.

3. Optimal Assignment #

The final step computes the optimal assignment of trips to vehicles, converted into an Integer Linear Program (ILP) and solved incrementally.

The Mathematical Model #

Our algorithm uses a sophisticated mathematical model to represent the ride-sharing problem:

  • Requests (R): Each request r is defined by origin (o_r), destination (d_r), request time (t_r^r), and latest acceptable pick-up time (t_r^pl).
  • Vehicles (V): Each vehicle v is characterized by its current position (q_v), current time (t_v), and current passengers (P_v).
  • Constraints (Z): Include maximum waiting time, maximum travel delay, and vehicle capacity.

Optimization Process #

  1. Cost Function: We minimize a cost function C(Σ) that considers travel delays for all passengers and assigned requests, plus a penalty for non-assigned requests.

  2. Constraint Satisfaction: The algorithm ensures all constraints are met, including maximum waiting times, travel delays, and vehicle capacities.

  3. Incremental Optimization: Given the NP-hard nature of the problem, we use an incremental approach to find sub-optimal solutions quickly, which can be improved over time.

Advanced Features #

  1. Continuous Operation: The algorithm can handle new incoming requests in real-time, continuously updating assignments.

  2. Fleet Rebalancing: We’ve implemented a system to rebalance idle vehicles to areas with ignored requests, minimizing overall waiting times.

  3. Scalability: Our approach is designed to scale efficiently with increasing numbers of vehicles and requests.

Real-World Impact #

This advanced algorithm enables Quiki to:

  1. Maximize vehicle utilization and reduce empty trips.
  2. Minimize passenger waiting times and travel delays.
  3. Adapt quickly to changing demand patterns in real-time.
  4. Provide a more efficient and cost-effective ride-sharing service.

Future Developments #

As we continue to refine our algorithm, we’re exploring several exciting avenues:

  1. Machine Learning Integration: Incorporating predictive models to anticipate demand patterns.
  2. Dynamic Pricing: Implementing surge pricing models based on real-time supply and demand.
  3. Multi-Modal Integration: Expanding the algorithm to incorporate other modes of transportation for truly integrated urban mobility solutions.

The sophisticated ride-matching algorithm at the heart of Quiki is more than just a technical marvel; it’s the key to unlocking more efficient, sustainable, and user-friendly urban transportation. As we prepare for Quiki’s launch, we’re excited to see how this technology will transform the way people move in cities.

Stay tuned for more updates as we continue to innovate and push the boundaries of what’s possible in ride-sharing technology!