[gecode-users] How can I make this constraint
Guido Tack
tack at ps.uni-sb.de
Thu Feb 14 21:45:15 CET 2008
Am 14.02.2008 um 21:23 schrieb Mauricio Toro:
> How can I make this constraint?
>
> int const x[] = {0,2,5,8,9,10};
> answer = IntVarArray(this,n,1,11);
>
>
> for (int i = 0; i < n-1; i++){
> // x[i] - x[i] = answer[i] - answer[i]
>
>
I guess you mistyped something here, I can't see how the constraint
0=0 can be of any use.
Guido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080214/b785acd8/attachment.htm>
More information about the gecode-users
mailing list