optaweb-vehicle-routing icon indicating copy to clipboard operation
optaweb-vehicle-routing copied to clipboard

0 capacity of a single vehicle available should lead to no route

Open rsynek opened this issue 5 years ago • 1 comments

Having a single vehicle a decreasing its capacity to 0 does not remove a route.

Expected: similar to having no vehicle at all, no route should be shown

rsynek avatar Aug 13 '19 07:08 rsynek

Interesting point. Technically, vehicle with 0 capacity can still take the route and visit places. It just can't deliver any packages.

The model should allow this. This is what a ghost vehicle would do in an over-constraint scenario (as a replacement for nullable variables, that don't work with chaining).

From frontend point of view we're just visualizing backend data, if OptaPlanner assigns a chain of visits to a vehicle with zero capacity, we have to represent it somehow. Probably indicate very clearly that the vehicle is unable to satisfy the total demand of that route.

Not a bug but interesting discussion point. Closely related to #151.

yurloc avatar Mar 12 '20 12:03 yurloc