[gecode-users] (no subject)
naguissa light
naguissa1989 at gmail.com
Fri Nov 22 13:57:14 CET 2013
hi everyone!
i have a simple question : how can i put an IntVarArgs into a vector ( or
is it even possible to do that ) , because i need to do some sum like this:
vector<int> *gain*;
IntVarArgs *gain1 *(m);
i have to do sum betwin those to and because i can't use* linear or rel
constraints* i just thought about geting gain1 into a vector.
i thought like this because in linear constraint i need to do som thing
like this :
linear (*this , gain, gain1, IRT_EQ, y); (here i dont have any thing as y
that's whay i cant use linear constaints) same thing for rel but what i
want is this
geting for every iterative (gain[i]*gain1[i]) and put the result into
an *IntArgs
gain2* , after that i want to do this :
*linear (*this , gain2, IRT_EQ, y);* when y is an IntVar
so intArgs gain2 is the sum of the sum of (gain[i]*gain1[i])
can YOU help me with this
Thank YOU very much for any idea
Naguissa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20131122/8907dbb2/attachment.html>
More information about the users
mailing list