[gecode-users] How can I make this constraint

Mauricio Toro mauriciotorob at gmail.com
Thu Feb 14 21:23:10 CET 2008


Hello all,
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]



Thanks

-- 
Mauricio Toro Bermudez
Estudiante de Ingeniería de Sistemas
Pontificia Universidad Javeriana, Colombia

Stagiare à l'Ircam
1, place Igor-Stravinsky 75004 Paris,
France de 2008 à 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080214/bfd65655/attachment.htm>


More information about the gecode-users mailing list