Hi, I am working on a CVRPTW. In this the objective function is to minimize the cost of all the vehicles. Each vehicle will have a fixed cost and it will run for x distance for 0 running cost and then it will have a running cost after it has exceeded its x distance limit.
For example, I have a vehicle with fixed cost of 500 and it will cover 10 km distance in the fixed cost after that it will take 20 cost per km. So, if it covers 15 kilometer the total cost should be 500+(20*5) = 600
I know I can used SetFixedCostOfVehicle() function to add the 500 fixed cost but I don't know how to get the total distance travelled yet in the transit callback.