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
> [email protected]
> https://www.gecode.org/mailman/listinfo/gecode-users
--
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/
_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users