This commit is contained in:
Laurent Perron
2025-01-30 14:26:53 +01:00
parent e7ec139daa
commit fe838d0619

View File

@@ -351,7 +351,7 @@ def print_solution(
# capacity dimension TransitVar is negative at reload stations during replenishment
# don't want to consider those values when calculating the total load of the route
# hence only considering the positive values
load_value = max(0, capacity_dimension.GetTransitValue(previous_index, index, vehicle_id))
load_value += max(0, capacity_dimension.GetTransitValue(previous_index, index, vehicle_id))
time_var = time_dimension.CumulVar(index)
plan_output += (
f" {manager.IndexToNode(index)} "