Hi,

 

No, the actual IntVarArgs etc are not updated. However any variable that is
used by a constraint or branching is automatically updated when their home
space is copied. And those arrays that you want to use for printing etc, are
those that you have to store as a meber of a space and update.

 

Cheers

Christian

 

--

Christian Schulte, www.ict.kth.se/~cschulte/

 

From: [email protected] [mailto:[email protected]] On Behalf
Of S L
Sent: Sunday, July 21, 2013 9:06 AM
To: [email protected]
Subject: [gecode-users] update Args automatically?

 

Hi All,

 

For the example scripts provided in the Gecode package, there are usages of
like IntArgs, IntVarArgs etc, take the domino problem as an example.  I am
wondering the clone of a space will also clone this "Args" automatically?
Since I see that they are not updated in the space copy method as variable
arrays declared in the private section of a script space.   Thanks!

 

regards,

Shawn 

_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to