don't use deprecated method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user