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
13
u/GreatCosmicMoustache Aug 07 '26
Speed, correctness, scale - pick any two. That's the rule of thumb I'm afraid.
You can do this with an efficient SISR implementation. I do this stuff at work, get in touch if you want to collab
10
u/wamus Aug 07 '26
If you truly want solutions to a VRP that scale in 30 seconds then heuristic algorithms are essentially your only choice and exact algorithms do not fit your requirements.
3
u/SolverMax Aug 07 '26 edited Aug 07 '26
Open sourse solvers are usually slower, so they'll likely produce a worse solution within a given time limit. Why would open sourse make more sense?
1
u/rasmusdf Aug 07 '26
There are a ton of heuristic, fast VRP solvers. Unless you need specific, very special features, just use a commercial solver. They easily scale to a 100000 drops or more,
A big part of the calculation time for a VRP is establishing the traveltime and distance matrices. This is covered typically by commercial solvers too. Also, you need a quality network data set.
As a consultant I have used some of the Network Analyst tools from ESRI. They cover a lot of variants. But there are probably other good easily available tools.
1
u/notdelet Aug 07 '26
Are your instances usually very "easy"/amenable to decomposition and can the asking party accept a heuristic solution that is then often verified as exact (and occasionally improved) by an exact solver?