Skip to content

Commit fe838d0

Browse files
committed
fix typo
1 parent e7ec139 commit fe838d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ortools/routing/samples/cvrp_reload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def print_solution(
351351
# capacity dimension TransitVar is negative at reload stations during replenishment
352352
# don't want to consider those values when calculating the total load of the route
353353
# hence only considering the positive values
354-
load_value = max(0, capacity_dimension.GetTransitValue(previous_index, index, vehicle_id))
354+
load_value += max(0, capacity_dimension.GetTransitValue(previous_index, index, vehicle_id))
355355
time_var = time_dimension.CumulVar(index)
356356
plan_output += (
357357
f" {manager.IndexToNode(index)} "

0 commit comments

Comments
 (0)