mapbox / node-or-tools

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

Provide capacities per vehicle at each location in output #2

Open daniel-j-h opened 7 years ago

daniel-j-h commented 7 years ago

We should output the capacity each vehicle has before / after servicing a location.

Use-case: being able to tell the vehicle's load at a specific time and place.


Implementation:

const auto* loadVar = capacityDimension.CumulVar(index);
assignment->Value(loadVar)