Hello Christian, Thank you! Ok, then i will use a LocalHandle. Do you confirm that it is not a bad idea to pass such an object as a parameter of a brancher (knowing that it contains several IntVar variables) ?
Cheers, Christine 2013/4/23 Christian Schulte <cschu...@kth.se> > Hi Christine,**** > > ** ** > > If the data structure is small then you do not have to share it by use of > a LocalHandle. If it is maybe not so small then the use of LocalHandle > might be useful.**** > > ** ** > > I personally always use LocalHandle when I can use it (that is, I have a > data structure shared between several entities in a space).**** > > ** ** > > Best**** > > 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 *christine bouzant > *Sent:* Tuesday, April 23, 2013 3:10 PM > *To:* users@gecode.org > *Subject:* [gecode-users] IntVar class container as parameter for > branchers**** > > ** ** > > Hello all,**** > > In my script class, i have an array of CarDeparture pointer objects which > class contains several IntVar variables and some data information.**** > > Inside the script copy constructor, i create a copy of the array of > CarDeparture objects using a CarDeparture copy constructor which updates > each of its IntVar variables and data.**** > > I am thinking to set a CarDeparture object as a parameter for a brancher.* > *** > > So, i should again do a copy of this object inside the brancher copy > constructor.**** > > According to you, is it judicious to proceed like this concerning > performance ?**** > > Or maybe, can i make the CarDeparture class inherit of LocalHandle (in > order to be space dependant ?).**** > > ** ** > > Thank you all.**** > > Cheers,**** > > Christine**** > > ** ** >
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users