Hi,

 

That's really a programming question and nothing Gecode related: you just
have to initialize the particular fields of your IntVarArray properly. A
part from that I do not understand your  problem.

 

Christian

 

--

Christian Schulte, www.ict.kth.se/~cschulte/

 

From: [email protected] [mailto:[email protected]] On Behalf
Of frank lemoine
Sent: Wednesday, January 06, 2010 9:23 PM
To: Christian Schulte; gecode gecode
Subject: [gecode-users] Tupleset

 

Hi christian, hi gecode users,
 
tank you for the quick repley. i have built tha data structure according to
your advice, but now when i try to post a multiple extensional constraint
it's dosen't work. i've this code:
 
there is a double loop with two indices s1 & s2 then:
IntVarArgs x1(3);
//x1[0]=m[0];    x1[1]=m[1];   x1[2]=z; 
x1[0]=m[s1];    x1[1]=m[s2];   x1[2]=z;
extensional(*this,x1, tupleSet, EPK_DEF, ICL_DOM);
 
m is an intVarArry, when i run like this i've no reslut afer branching m but
if i run the first line i have some result but my goal is to run it on s1
ans s2.
 
I hope I was clear enough in this explanation.
 
Frank.

  _____  

Vous êtes étudiants ? Bénéficiez de Windows 7 à 35? !  Découvrez
<http://www.windows-7-pour-les-etudiants.com>  notre offre ! 

_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to