[gecode-users] std::set to Gecode::IntVar conversion

Grégoire Dooms dooms at info.ucl.ac.be
Thu May 11 09:20:12 CEST 2006


Martin Mann wrote:
> Moin Christian,
>
> mhh.. ok I ll have a look if I can write a worthy conversion! ;)
> Will have to have a deeper look into IntVar implementations..
>
You can find two in the contribs/graph/view/iter.icc
They are called StlToGecodeRangeIterator and StlToGecodeValIterator
See example below.

> Are there any predefined initialisation possibilities in addition to the
> "min-max" range init?
>
> Meanwhile, I am looking for set operations for IntSet variables like 
> union
> or intersection.
> I am used to them by Mozart or Ilog. Are they available in Gecode?
>
They are available through iterator operations: union intersection, 
difference (see example below)

Best,
--
Grégoire Dooms
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpgraph-set.cc
Type: text/x-c++src
Size: 952 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20060511/e940a917/attachment.cc>


More information about the gecode-users mailing list