Closed Kuifje02 closed 3 years ago
The way initial routes are created is too permissive with respect to load capacity:
https://github.com/Kuifje02/vrpy/blob/96cc5501d05c341cc50f4377d15f27fbf422584a/vrpy/vrp.py#L897-L901
Initial route should be created only if feasible.
I am having trouble with determining vehicle type by route.
I solved the problem below:
when I print out ‘prob.best_route’ and ‘prob.best_routes_type’, I get:
As you can see, all the routes type have value ‘0’, which would mean that the routes used vehicle 1 with capacity 10. But this would not be possible since vehicles of type ‘0’ cannot handle a demand of 13 for node 1 and 2. Should I be seeing ‘Route type: {1: 1, 2: 1}’?