Hi folks,
I'm working on a CVRPTW in which I would like to set a soft upper bound on time. I've successfully tested the soft upper bound on a duration dimension that only takes into account the time between nodes, and then adding something like:
duration_dimension.SetCumulVarSoftUpperBound(routing.End(vehicle_id), 180, 10)
Meaning that the model would add a penalty of 10 after 180 minutes of route for each vehicle. But now I would like to change that so the soft upper bound applies to the last node of the route different from the depot, since the important part of the route is from the depot to the last visited node, but the route from that node to the depot is not important at all. How would I change that upper bound to consider that? I don't think so, but is it as simple as setting routing.End(vehicle_id)-1?
Thank you very much in advance,
Borja.