In Google OR-Tools Java, how do you set a dimension capacity over all routes combined?
My use case is for the total duration of all routes—-there can only be X hours of travel for the entire fleet of vehicles. I see documentation online for how to set a span cost coefficient, soft upper bound, or capacity for all vehicles taken individually. How do I set a hard upper bound for all vehicles taken together?
The code below is not the right solution, since it sets capacities for all routes individually:
router.addDimension(transitCallbackIndex, 0, totalSecondsForAnIndividualRoute, true, "Time");