In line 13 of file escape.mzn , the variable is declared as: var int: step;. The scale is not precise enough. When I fixed the edge with uedge, as shown in the debugging tutorial, the model output a wrong answer and printed step = 11 rather than step = 9 as expected.
I think we should either change this line of code to var STEP: step; or add another constraint: constraint path[maxstep] = dest; in order to get the right answer.
Hope this helps. :)
In line 13 of file
escape.mzn, the variable is declared as:var int: step;. The scale is not precise enough. When I fixed theedgewithuedge, as shown in the debugging tutorial, the model output a wrong answer and printedstep = 11rather thanstep = 9as expected.I think we should either change this line of code to
var STEP: step;or add another constraint:constraint path[maxstep] = dest;in order to get the right answer.Hope this helps. :)