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/




_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to