node-or-tools icon indicating copy to clipboard operation
node-or-tools copied to clipboard

Provide capacities per vehicle at each location in output

Open daniel-j-h opened this issue 9 years ago • 0 comments

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:

  • When an assignment could be found: for each vehicle walk over all location indices in the route
  • For each location index store the accumulated capacity domain at this location for the vehicle
const auto* loadVar = capacityDimension.CumulVar(index);
assignment->Value(loadVar)

daniel-j-h avatar Apr 18 '17 23:04 daniel-j-h