Choosing the next hub.
Finding the best location for an extra hub in a logistics client's hub-and-spoke network.
What it is
Client project from the RSM Business Analytics Workshop. A logistics company wanted to expand its hub-and-spoke model with one additional hub, placed so that total kilometres driven are minimised. That turns into a travelling salesman problem and a vehicle routing problem over Dutch postal-code geography.
The pipeline: preprocess and geocode the client's route data with Haversine distances, generate candidate hub locations with K-Means clustering, then optimise. A Gurobi model came first; when it hit its limits, the final routing model was built in Google OR-Tools.
fig. k-means proposes candidate hubs; routing picks the one that saves the most kilometres.
The work
- Cleaned and merged client route data with Dutch postal-code geodata, computing Haversine distances
- Generated candidate hub locations with K-Means clustering
- Built a kilometre-minimising optimisation model in Gurobi
- Delivered the final TSP/VRP routing model in Google OR-Tools when Gurobi hit scale limits
Concepts
Key takeaway
When the Gurobi model hit its limits at the client's scale, switching to Google OR-Tools got us to a working solution.