-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
BugSolver: RoutingUses the Routing library and the original CP solverUses the Routing library and the original CP solverSolver: Routing - breakRouting break related issueRouting break related issue
Milestone
Description
A solution found by the constraint programming solver violates breaks of vehicles. The breaks are fixed and performed. A repro is included.
It is possible to define an instance of the Vehicle Routing Problem with Time Windows and Breaks for which the solver will report an invalid solution. Furthermore, the solver fails to recognize that the returned solution is invalid. A more appropriate action would be either dropping more visits or returning a nullptr solution.
Repro example is available in the fork: https://github.com/pmateusz/or-tools/commit/ff78b5c27d7db3a5b8c6ef1791ca3df35b55fd93
Example output
./cvrptw_with_breaks_repro
E0205 17:14:37.660873 11997 cvrptw_with_breaks_repro.cc:390] The time [13:00:00, 13:45:00] allocated for the visit (0 [12:15:00, 13:15:00] 00:45:00) overlaps with the break [13:00:00, 16:00:00] of vehicle (0)
E0205 17:14:37.661190 11997 cvrptw_with_breaks_repro.cc:390] The time [19:30:00, 19:45:00] allocated for the visit (8 [19:30:00, 20:30:00] 00:15:00) overlaps with the break [19:30:00, 20:00:00] of vehicle (17)
E0205 17:14:37.661250 11997 cvrptw_with_breaks_repro.cc:390] The time [19:00:00, 19:30:00] allocated for the visit (9 [19:00:00, 20:00:00] 00:30:00) overlaps with the break [19:00:00, 19:30:00] of vehicle (18)Could you confirm the bug? Are you aware of any workarounds for the problem reported?
Metadata
Metadata
Assignees
Labels
BugSolver: RoutingUses the Routing library and the original CP solverUses the Routing library and the original CP solverSolver: Routing - breakRouting break related issueRouting break related issue