Skip to main content
QUICK REVIEW

[Paper Review] Using Recursive K- Means and Dijkstra Algorithm to Solve CVRP

Hassan Moussa|arXiv (Cornell University)|Jan 1, 2021
Vehicle Routing Optimization MethodsEngineering2 citations
TL;DR

This paper proposes a hybrid metaheuristic approach to solve the capacitated vehicle routing problem (CVRP) by integrating recursive K-means clustering for optimal client partitioning, Newton-Raphson-based vehicle distribution, and Dijkstra’s algorithm for shortest-path routing within clusters. The method achieves near-optimal solutions by iteratively refining clusters and optimizing vehicle capacity utilization and routing efficiency.

ABSTRACT

Capacitated vehicle routing problem (CVRP) is being one of the most common optimization problems in our days, considering the wide usage of routing algorithms in multiple fields such as transportation domain, food delivery, network routing, ... Capacitated vehicle routing problem is classified as an NP-Hard problem, hence normal optimization algorithm can't solve it. In our paper, we discuss a new way to solve the mentioned problem, using a recursive approach of the most known clustering algorithm "K-Means", one of the known shortest path algorithm "Dijkstra", and some mathematical operations. In this paper, we will show how to implement those methods together in order to get the nearest solution of the optimal route, since research and development are still on go, this research paper may be extended with another one, that will involve the implementational results of this thoric side.

Motivation & Objective

  • To address the NP-hard capacitated vehicle routing problem (CVRP) with a scalable, heuristic-based solution.
  • To optimize vehicle capacity utilization through mathematical distribution of clients across vehicles using the Newton-Raphson method.
  • To improve routing efficiency by clustering geolocated clients recursively using K-means and refining clusters based on capacity and distance constraints.
  • To minimize total travel cost by applying Dijkstra’s algorithm on clustered subgraphs to compute shortest paths within each vehicle’s route.
  • To provide a theoretical framework that can be extended with empirical implementation results in future work.

Proposed method

  • Uses recursive K-means clustering to partition clients into clusters matching vehicle capacities, with each recursion step splitting clusters until capacity constraints are met.
  • Applies the Newton-Raphson method to solve a system of nonlinear equations for optimal vehicle distribution, minimizing the number of vehicles while respecting capacity constraints.
  • Implements a hierarchical optimization phase to merge or split clusters based on centroid distance and capacity thresholds to improve occupancy rates.
  • Represents the routing domain as a graph with vertices (locations) and edges (routes), then applies Dijkstra’s algorithm to find the shortest path between nodes within each cluster.
  • Uses a priority queue data structure in Dijkstra’s algorithm to efficiently compute shortest paths, with time complexity dependent on queue operations.
  • Constructs a phase tree to track recursive clustering steps, with final leaf nodes representing the optimized clusters assigned to vehicles.

Experimental results

Research questions

  • RQ1Can recursive K-means clustering improve the quality of client partitioning in CVRP compared to standard K-means?
  • RQ2How can the Newton-Raphson method be effectively applied to determine the optimal number of vehicles per capacity class?
  • RQ3To what extent does post-clustering optimization based on centroid distance and capacity constraints enhance vehicle utilization?
  • RQ4How does integrating Dijkstra’s algorithm within clustered subgraphs reduce total routing cost in CVRP?
  • RQ5Can a hybrid approach combining unsupervised clustering and shortest-path algorithms yield near-optimal solutions for NP-hard CVRP instances?

Key findings

  • The recursive K-means approach successfully partitions clients into clusters that respect vehicle capacity constraints, with clusters terminating when node counts match vehicle capacities.
  • The Newton-Raphson method provides a numerical approximation for optimal vehicle distribution, ensuring the total client count matches the sum of vehicle capacities.
  • The optimization phase improves cluster occupancy by merging low-utilization clusters with nearby, under-capacity clusters based on centroid distance and capacity feasibility.
  • Dijkstra’s algorithm effectively computes the shortest path within each cluster, enabling efficient routing from the depot to all cluster nodes.
  • The overall framework produces a near-optimal solution by combining clustering, capacity balancing, and path optimization in a structured, multi-phase approach.
  • The method is theoretically sound and designed for extension with empirical implementation results in follow-up research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.