[gecode-users] Copy the domain from variable to another in diff. spaces
Mauricio Toro
mauriciotorob at gmail.com
Mon Jun 16 16:53:01 CEST 2008
Hello all,
I am doing an application with Gecode using several Spaces.
I need to copy the domain from IntVars and SetVars from one Space to
another.
But, once I copy the domain, the old space is deleted, therefore I do not
want some sort of "channel" constraint.
For example:
Space * space1;
IntVar x(space1, 1,10);
IntSet y;
copythedomain(x,y);
//do some computation
delete space1;
Space * space2;
IntVar z(space2,1,100);
copythedomain(z,y);
//do some computation
delete space2;
I tried with these constraints:
dom(space1,x,y); dom(space2,z,y);
But they did not work.
What can I do?
Thanks !!
--
Mauricio Toro Bermudez
Estudiante de Ingeniería de Sistemas
Pontificia Universidad Javeriana, Colombia
Stagiare à l'Ircam
1, place Igor-Stravinsky 75004 Paris,
France de 2008 à 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080616/d80e03da/attachment-0001.htm>
More information about the gecode-users
mailing list