You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the update to v2.7.4 I get an invalid solution to the following model:
% Generated by CPMpy
include "globals.mzn";
var -3..5: x;
var -3..5: y;
var -3..5: z;
var 0..10: idx;
var -3..5: val;
var bool: p;
constraint ((
let { array[int] of var int: arr=array1d(0..2,[x,y,z]) } in
arr[idx]) == (val)) -> (p);
Which is a model generated by our CPMpy library. We use the alternative array to circumvent the differnece between 1-indexed Minizinc arrays vs 0-indexed Python arrays.
The solution retured on version 2.7.4 by Gecode is:
x = -3;
y = -3;
z = -3;
idx = 0;
val = -3;
p = false;
While v2.7.3 returns
x = -2;
y = -3;
z = -3;
idx = 0;
val = -3;
p = false;
The text was updated successfully, but these errors were encountered:
It looks like the result for MiniZinc 2.7.3 would also have been incorrect since the value -2 should not have been allowed according to the domain of x.
It looks like the result for MiniZinc 2.7.3 would also have been incorrect since the value -2 should not have been allowed according to the domain of x.
-2 is in the range -3..5, so I think the old solution was valid - just the new one is wrong since p should be true
I was about to report another reification-related bug in 2.7.4 (not present in 2.7.2). Do you have nightly builds or some such where the latest fixes can be tried out to see if my problem is gone?
Since the update to v2.7.4 I get an invalid solution to the following model:
Which is a model generated by our CPMpy library. We use the alternative array to circumvent the differnece between 1-indexed Minizinc arrays vs 0-indexed Python arrays.
The solution retured on version 2.7.4 by Gecode is:
While v2.7.3 returns
The text was updated successfully, but these errors were encountered: