[gecode-users] obtaining IntVar's domain as IntSet?
Guido Tack
tack at gecode.org
Tue Jul 27 19:15:40 CEST 2010
Kish Shen wrote:
> Hi,
>
> Is there anyway to obtain the domain of an IntVar as an independent object, preferably an IntSet? I looked at the documentation, and can't figure out how to do this.
Yes, using an IntVarRanges iterator. If you have an IntVar x, use the following:
IntSet s(IntVarRanges(x));
Cheers,
Guido
--
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/
More information about the users
mailing list