[gecode-users] gecode 6 exception

Kurt Van Den Branden kurt.vandenbranden at agfa.com
Tue Apr 24 17:03:25 CEST 2018


hi,

here is some simple example code:

                FloatVar x (*this, -100, 100);
                FloatVar t1 = expr (*this, abs (x * 100)); // OK
                FloatVar t2 = expr (*this, abs (x) * 100); // NOK

variable t1 doesn't cause a problem
when creating variable t2, an exception is thrown (OutOfLimits(
"Float::linear"))

the same code compiled with gecode 4.3.2 doesn't cause problems.

am I doing something wrong?

Kind Regards,

Kurt Van Den Branden | Agfa Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20180424/39179511/attachment.html>


More information about the users mailing list