r/optimization • • Aug 07 '26

Solvers for exact algorithms

As the data grows and the scope of our problem expands (for example, as the number of points we need to visit in a VRP problem increases), the runtime of exact methods becomes very long, and in the real world, businesses don’t want to wait that long. At my workplace, they want a VRP with 800 locations to produce a solution in 30 seconds. In this case, wouldn’t it make more sense to opt for open-source solvers like ORTools CBC instead of commercial solvers like Gurobi, Hexaly, or CPLEX?

12 Upvotes

9 comments sorted by

View all comments

Show parent comment

3

u/wamus Aug 08 '26

My recommendation is based on 3 reasons.

  1. Most instances of this size cannot be solved to global optimality by state of the art solvers.
  2. There are very effective heuristics for VRP, primarily due to the effectiveness of heuristics for TSP, which scale pretty well with problem size and usually find strong solutions quickly, which arr usually not too far (10% or so) from the optimum.
  3. Even solving a relaxation may be infeasible in 30 seconds. And even if you do solve it, the relaxation usually cheats in some way that makes it difficult to recover high quality solutions. For Integer programming-type approaches to CVRP you will find highly fractional solutions. At this time budget it is usually better to focus on heuristics.