[gecode-users] How to create a domain with holes
Christian Schulte
cschulte at kth.se
Wed May 4 15:29:45 CEST 2011
Sets can be initialized from arrays of ranges, so you do not have to
enumerate individual elements. Please check the documentation carefully.
Christian
--
Christian Schulte, www.ict.kth.se/~cschulte/
-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Max Ostrowski
Sent: Wednesday, May 04, 2011 3:25 PM
To: users at gecode.org
Subject: [gecode-users] How to create a domain with holes
Hello everybody,
i want to set the domain of an uninitialized IntVar to,
for example [1-7, 5-14, 23-42].
I found in the documentation that i can use a set to initialize the domain
of the variable, but i do not want to explicitly enumerate the set.
(the ranges could be large).
So is there a possibility to compute the union of several ranges(implicitly)
and use it for the domain of a variable?
PS: I found an AddRange iterator but am not sure how to use it.
Best,
Max
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users
More information about the users
mailing list