-
Notifications
You must be signed in to change notification settings - Fork 2.4k
VRP with breaks minor bug? #4234
Copy link
Copy link
Open
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
Metadata
Metadata
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
Type
Fields
Give feedbackNo fields configured for issues without a type.
What version of OR-Tools and what language are you using?
Version: stable branch
Language: C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Routing Library
What operating system (Linux, Windows, ...) and version?
Linux Mint 21.3
What did you do?
Using VRP with breaks.
GlobalVehicleBreaksConstraintwill be added to the Solver.What did you expect to see
I believe here we're updating
StartMinvalue of the arcpath_[pos] -> path_[pos + 1]toEndMinvalue of the break interval. This arcStartMinisCumulVar(path_[pos])->Min() - arc_start_offset. So instead ofSetMin(CapSub(interval_end_min, arc_start_offset))it should beSetMin(CapAdd(interval_end_min, arc_start_offset)).or-tools/ortools/constraint_solver/routing_breaks.cc
Lines 943 to 951 in 5124f49