-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IEEE exception #57
Comments
ASL disables IEEE exceptions unless Lines 130 to 137 in 446d112
However, the "Error while evaluating objective" is usually reported when a math function returns an error via Line 534 in 446d112
I'm not sure if you can disable this, but you can handle errors yourself via |
Sorry for the slow reply. I'm observing an erroneous function and gradient values on Linux, but they're ok on OSX. Technically, the evaluation should produce an IEEE error and return +inf. On Linux, I get zero instead. I'm trying to determine whether the issue comes from ASL or the fact that on Linux, ASL is compiled with gcc (on OSX I use clang by default). When I try to build with gcc 4.9 on OSX, I get the error message
I added
I invoke Any ideas? |
What version do you use? The Line 29 in 51ae35d
Could you post the test log |
I use version 2.0.1. Somehow the Here's the test log: https://gist.github.com/f8b120d6bc81cb273f5a EDIT: I confirm that |
I meant it is fixed in the Strangely I couldn't reproduce the os-test failure on my OS X systems. Could you by any chance post the output of CMake run on a clean mp repo? This could give more info about your setup for me to reproduce the issue. |
I just tested with ampl/mp master and the erroneous function value issue isn't resolved on linux. |
No apparent difference when compiling with |
To clean things up a bit here I've moved the os-test failure to a separate issue (#61) and prepared a corrective release 2.0.2 that fixes the compilation error on OS X. Regarding the main issue, as I mentioned in #59 (comment), ASL has macro |
@dpo I'm closing this issue since it is possible to enable Infinity propagation at least for some operations with |
Is there a way to compile the ASL so IEEE exceptions return Inf or NaN instead of producing an error? On some Linux machines, IEEE exceptions results in an error message such as "Error while evaluating
objective.", while on OSX, they seem to simply return Inf or NaN.
Thanks.
The text was updated successfully, but these errors were encountered: