diff --git a/examples/python/cvrptw_plot.py b/examples/python/cvrptw_plot.py index 9f23baaa2f..72bde53192 100644 --- a/examples/python/cvrptw_plot.py +++ b/examples/python/cvrptw_plot.py @@ -652,7 +652,7 @@ def main(): # Set vehicle costs for each vehicle, not homogenious. for veh in vehicles.vehicles: - routing.SetVehicleFixedCost(int(veh.index), veh.cost) + routing.SetFixedCostOfVehicle(veh.cost, int(veh.index)) # Add a dimension for vehicle capacities null_capacity_slack = 0