Have a look at Sect. 8.8 in MPG, it shows how to implement a custom value selection strategy.
Cheers, Guido On 11 Apr 2014, at 5:38 pm, negate...@gmail.com wrote: > Are there any implementations for different random distributions for integer > *value* selection, besides the uniform distribution supported by > INT_VAL_RND() ? For Eg. I’d like the values to be distributed based on a > normal distribution or maybe a logarithmic distribution. > If not, can you point me to some code which would be a good starting point to > implement such a value selection method, as I’m not sure where the > implementation for INT_VAL_RND exists ? Is it in > gecode/int/branch/val-sel-commit.cpp ? > There was a thread in May 2009 titled “How to set an arbitrary > RandomGenerator for randomized branching”, but not sure if it ever got > implemented ? > > Thanks, ~az > _______________________________________________ > Gecode users mailing list > users@gecode.org > https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users