[gecode-users] Possible bug in reified constraint on FloatVar

Duong Khanh Chuong chuongdk at gmail.com
Sun Mar 17 01:08:28 CET 2013


Hi,
I'm trying to use FloatVar and found this bug:

    FloatVar f(*this, 0, 10);
    BoolVar test(*this, 0, 1);

    rel(*this, f, FRT_GQ, 5, test);
    rel(*this, test, IRT_EQ, 1);

With this reified constraint, the domain of f should be [5, 10] but it is
always [0, 10]

If I change FRT_GQ to FRT_EQ, it works:

    FloatVar f(*this, 0, 10);
    BoolVar test(*this, 0, 1);
    rel(*this, f, FRT_EQ, 5, test);
    rel(*this, test, IRT_EQ, 1);

Domain of f is [5,5]


Best regards,
Duong Khanh Chuong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130317/fd096852/attachment.html>


More information about the users mailing list