Try harder reading! The constraint is called linear.

 

Christian

 

--

Christian Schulte, Professor of Computer Science, KTH,
www.ict.kth.se/~cschulte/

 

From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf
Of manel askri
Sent: Thursday, July 04, 2013 12:00 AM
To: users@gecode.org; users-requ...@gecode.org
Subject: [gecode-users] how to convert a choco constraint to gecode
constraint

 

hi !

 

i have to convert a constraint which was written with choco solvor , choco
works with java , so i have this line code which didn't undrestand how to
code it with gecode 

 

the code line is : 

 

sumConstraints.add(Choco.eq(somme, Choco.sum(rowArray)));

 

sumConstraints: is an array list of Constaints 

somme :is an IntegerVariable 

rowArray : is IntVarArgs

 

i did read the MPG but i didnt find some thing like that 

 

could any one help me please 

 

thanks very much 

_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to