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: [email protected] [mailto:[email protected]] On Behalf Of Max Ostrowski Sent: Wednesday, May 04, 2011 3:25 PM To: [email protected] 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 [email protected] https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
