[gecode-users] (no subject)
Christian Schulte
cschulte at kth.se
Fri Nov 22 14:02:22 CET 2013
Please read MPG again. Christian
--
Christian Schulte, Professor of Computer Science, KTH,
www.ict.kth.se/~cschulte/
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of naguissa light
Sent: Friday, November 22, 2013 1:57 PM
To: users at gecode.org
Subject: [gecode-users] (no subject)
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/7cfe133d/attachment.html>
More information about the users
mailing list