Thank You but i really did and i did stuck over there ??? So can you help me
2013/11/22 Christian Schulte <cschu...@kth.se> > Please read MPG again. 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 *naguissa light > *Sent:* Friday, November 22, 2013 1:57 PM > *To:* users@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 > > _______________________________________________ > Gecode users mailing list > users@gecode.org > https://www.gecode.org/mailman/listinfo/gecode-users > >
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users