ROUTING_INFEASIBLE vs ROUTING_FAIL in CVRPTW #4182
Unanswered
onecable5781
asked this question in
Routing (and legacy CP) questions
Replies: 1 comment
-
From what I believe, the solver is not built to prove infeasibility. It will only return INFEASIBLE if it is trivially infeasible, not after a search. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have the following code, https://godbolt.org/z/qKx8TbvPW which reads in the following input file:
input.txt
The problem is a depot + 2 customer (3 nodes in total, first column of first row in input file) CVRPTW problem. There is a single vehicle with 10 units of capacity (2nd and 3rd columns of first row of input file) being solved for 200,000 milli seconds (next entry in first row).
The demand at customer 1 is 20 units and demand at customer 2 is 30 units (please see last columns of ultimate and penultimate rows of input file). So, the problem is clearly infeasible.
When this problem is solved, I check the status of the solution via the following lines:
The returned status is
routing.ROUTING_FAIL
. Relevant status are:or-tools/ortools/constraint_solver/routing.h
Lines 268 to 275 in 5f7eabb
Can it please be clarified why this problem is not being deemed to have proven infeasibility? That is more useful in this context than the heuristic being unable to find a feasible solution. Is there a way the solver can be encouraged to prove infeasibility vs finding a good heuristic solution? If infeasibility is proven, then, the latter can essentially be skipped.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions