[gecode-users] domain constraint

Guido Tack tack at gecode.org
Thu Nov 11 17:57:38 CET 2010


I can't reproduce that here.  The following works just fine:

    IntVarArray x(*this,200,0,199);
    Support::RandomGenerator rnd;
    IntArgs a;
    for (int i=10; i--;)
      a << rnd(200);
    dom(*this, x, IntSet(a));
    std::cout << "t = " << t << std::endl;

Are you sure the memory is really allocated in that part of the code?

Cheers,
	Guido

frank lemoine wrote:

> 
>  hello Guido,
>  
> i've X :IntVarArray (*this, 200, 0, 199) and 
>  
> i've a :intargs={10 random values from 0 to 199} 
>  
> then i do  d(a) --> dom(*this, X,d, ICL_VAL); so it works but too many memory is allocated for this.
>  
>  
> I would like that a be the domain of X whithout using the domain constraint
>  
> Best Cheers.
>  
> Frank.
>  
>  
> 
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users

-- 
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20101111/edac889f/attachment-0001.htm>


More information about the users mailing list