-
Notifications
You must be signed in to change notification settings - Fork 6
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
Possible post optimization error when using a locale with a comma as floating point #99
Comments
Tracking the error in NLPModelsIpopt.jl l.249
So the result of Meta.parse would be Expr instead of a Float ? |
More tests: works fine with NonlinearSolve (although needs prefixing) (prefixing does not fix the error with the other 2)
|
FOUND IT: some packages apparently change the way floating point numbers are displayed, namely with a comma instead of a dot. The resulting expression is not properly parsed as a Float in NLPModelsIpopt...
vs the usual
Quick fix: set locale (LC_NUMERIC) to US for instance to prevent the use of the comma. Not very satisfying though. |
Todo: signal the possible issue at NLPModelsIpopt |
Sample case
The problem is solved correctly but an error occurs after the optimization
Removing the using other than CTDirect removes the error.
Same with using Mousetrap. Adding the other 'using' directives present in CTDirect, or changing the order of the using directives, does not change the problem.
The text was updated successfully, but these errors were encountered: