Argh - my bad... Thanks!
/T
Christian Schulte skrev 2014-05-15 13:39:
Hi Tomas,
According to the documentation slice(i1,i2,j1,j2) extracts the
elements with coordinates in [i1,i2) and [j1,j2).
So, in your example, slice(i,i+1,i,i+1) extracts the elements with
coordinates [i,i+1) and [i,i+1) which is the single element with
coordinates i,i. That means you have to write slice(i,i+2,i,i+2).
_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users