[gecode-users] About the offset.

Juan Carlos carlvall at gmail.com
Fri Mar 28 17:15:20 CET 2008


Hello

I need to use the offset argument in the element propagator.
But now that no longer exists,I ve been thinking about some ways to achieve
the same effect.

1)
VarArray array;
IntVar var1;
IntVar var2= var1+offset; (using the right propagator of course)
Int value;
element(array, var2, value)

2)
int offset;
VarArray a1(the real thing);
VarArray a2;
element (a2, var1, value);
a1[i+offset]=a2[i]; (using the propagator too )

 I cant get  what is the idea of the dummy objects to the array that you
mention in the changelog, Im very curious about that. Would you explain me
your idea?.
thanks

cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080328/c211c700/attachment.htm>


More information about the gecode-users mailing list