A. ŠARAS
2024 · RSM Business Analytics Workshop built · 2024

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

Concepts

TSP / VRP K-Means Gurobi Google OR-Tools Geospatial Python

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.

Links

View the code on GitHub