-
Bug
-
Resolution: Done
-
Blocker
-
6.5.0.Final
-
None
-
2018 Week 39-41
-
5
-
NEW
-
NEW
From dev list:
"I found that when start with and empty solution (0/0 customer/vehicles) the solver raise an << 'java.lang.IllegalStateException' exception. The @ValueRangeProvider annotated member (method getVehicleList on class xx.xxxx.xxxxx.domain.VehicleRoutingSolution) called on bean (TimeWindowedVehicleRoutingSolution-0925182702) must not return an empty valueRange ([]). If this a valid dataset, apply overconstrained planning as described in the documentation."
The unit test CloudBalancingDaemonTest doesn't see it because it doesn't start from an empty solution.
First we need a unit test, but the fix will go deep I fear: removing the fail fast is easy, but making sure it doesn't crash, NPE, uselessly loop once that fail fast is gone, that's another matter...
- duplicates
-
PLANNER-241 If all entities are immovable (or there are no entities), the solver should simply do nothing. It should not log bailing out warnings.
- Closed
- is caused by
-
PLANNER-545 Do not fail fast on an empty ValueRangeProvider that is only used in unions that aren't empty.
- Open
- relates to
-
PLANNER-1738 If an entity's the value range is empty or a single element, it should set it and make it syntetically immovable
- Open