From 3fc21ae08e14de3f797f820bd5c221e128abfab3 Mon Sep 17 00:00:00 2001 From: Adrian Rangel Date: Thu, 25 Aug 2016 23:27:23 -0500 Subject: [PATCH] don't use deprecated method --- examples/python/cvrptw_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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