No solution found when forcing all vehicles to be used #4056
Replies: 3 comments 7 replies
-
IMHO, The problem is the first solution is built by adding node iteratively i.e. at beginning all vehicles have an empty route.... Try to set a |
Beta Was this translation helpful? Give feedback.
-
And should I set nrStopsDimension->SetCumulVarSoftLowerBound(vehicleEnd, 1, 100000) or nrStopsDimension->SetCumulVarSoftLowerBound(vehicleEnd, 2, 100000)? I mean the "lower_bound" in this case is the number of transits or the number of stops? |
Beta Was this translation helpful? Give feedback.
-
I tried setting different lower bounds, even 5 and a penalty of int32 max and int64 max, but it uses only 2 vehicles each time. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I have an input with 400 stops + 1 stop as departure and 8 vehicles. I wanted to combine different types of vehicles (cars and trucks for example), so I have different matrices for each vehicle type. I want to force all the vehicles to be used, but I get no solution.
I set the matrices in the following way:
This is how I set the minimum and maximum number a vehicle can visit:
For my case, I set the minNrOfStops to 2, which means 2 transits 1 from depot to location1 and the other one from location1 to depot.
Can anyone tell me what am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions