[gecode-users] IntVar class container as parameter for branchers

christine bouzant christine.bouzant at gmail.com
Tue Apr 23 15:09:49 CEST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130423/bc6a02f5/attachment.html>


More information about the users mailing list