mapbox / node-or-tools

Node.js bindings for or-tools vehicle routing problems
MIT License
146 stars 48 forks source link

The routes result is empty #42

Closed Nacabacu closed 6 years ago

Nacabacu commented 6 years ago

Hi, @daniel-j-h. I have tried this library with these params. numNodes = 7 (except depot) demands = all 1 numVehicles = 3 and if I use vehicleCapacity >= 5 it will return just 2 routes and another empty route with cost 8778. If I use vehicleCapacity = 4 it will return 3 routes with cost 9892. How can I set the results to have full routes? Thank you for your response. ps. sry for my Eng, hope you understand.

daniel-j-h commented 6 years ago

I think what you're looking for is:

Nacabacu commented 6 years ago

Thank you so much.