Skip to content
Preptima
hardDesignCase StudyMidSeniorStaffLead

Vehicle routing is NP-hard. How do you produce a plan the depot will run tomorrow morning?

7 min readUpdated 2026-08-15

Answer

Short answer

You stop pursuing optimality and engineer for a wall-clock budget: build a feasible plan with a construction heuristic, improve it with local search or a metaheuristic until the clock runs out, and model the constraints that genuinely bind, which are time windows, capacity and statutory driver hours.

Was this answer helpful?

Likely follow-ups

  • A driver calls in sick at 06:40. What do you run, and how long do you have?
  • How would you tell whether your solver or your distance matrix is the cause of a bad plan?
  • Two depots could serve the same cluster of stops. How does that change the problem?
  • How would you measure whether the plan you produced was any good, after the fact?

Related questions

Further reading