don't use deprecated method

This commit is contained in:
Adrian Rangel
2016-08-25 23:27:23 -05:00
committed by GitHub
parent c300a46cd1
commit 3fc21ae08e

View File

@@ -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