[gecode-users] affect an IntVarArgs to an integer

manel askri askri.manel1 at gmail.com
Thu Jul 4 00:35:44 CEST 2013


hi

i have a problem with rel
first i want to know the sum of all integers in an IntVarArgs that whay i
use : sum(rowArray), and rowArray is an IntVarArgs

but when i want to create a constraint that oblige the sum(rowArray) to be
equal to an IntVar , i wrote this line of code

rel (*this, sum(rowArray),IRT_EQ, v2);

that shows me an error and i dont konw how to solve it , i thought that if
i can affect the result of the sum to an integer variable it could be a
solution but i don't know how to do it

So please if any one have any help for me thanks very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130703/c40a0258/attachment.html>


More information about the users mailing list