Hi Guido, On Nov 23, 2007 5:04 PM, Guido Tack <[EMAIL PROTECTED]> wrote:
> You can have a look at the file test/int.cc, the cloneWithReflection > function might help you. Please keep in mind that the reflection API > is still experimental, the interface might change. In fact, if you > find things that don't work as you expect, or would like to have > additional functionality, please let us know! > What i need now is to put some references to the newly added variables in a "root" array. For instance, after merging the money problem space into a queens of size 5 problem space i expect to have 8 more variables. Also i need to have references to that variables from the q IntVarArray (for instance, to post new constraints). I have a question about the VarMap or VarMapIter. Is it possible to know how many variables a VarMap stores, or to access VarBase objects through VarMapIter?. My idea is to iterate on the VarMap and to add the VarBase corresponding objects to the q array. The problem is that i don't find a method to get the size of the map to use it in a for loop. The VarMapIter only provides access to variable specifications but not to VarBase objects. Cheers, -- Gustavo Gutierrez _______________________________________________ Gecode users mailing list [EMAIL PROTECTED] https://www.gecode.org/mailman/listinfo/gecode-users
