Kuifje02/vrpy

num_vehicles ignored

piaulous opened this issue · 4 comments

Hello again,

I'm coming along with another issue regarding the option num_vehicles. I'm trying to solve a CVRP for a quite huge street network (matrix dimension of 196). I'd like to have a fleet of max. 5 vehicles, but the solution gives me 35 routes in total. Do you have any suggestions? Are there any limitations on the Clark & Wright heuristic?

Notebook

Looks like the implementation of Clarke & Wright does not have an argument num_vehicles. How could I add this functionality to my model?

Hi @piaulous, Clarke & Wright is a constructive heuristic, therefore the num_vehicles does not apply.

Does your answer mean, that implementing a limited fleet for Clarke & Wright is just not possible or that an implementation like that won't work for vrpy?

Yes indeed, implementing a limited fleet for Clarke & Wright is just not possible, as routes are built sequentially and are an output of the algorithm.