-
Notifications
You must be signed in to change notification settings - Fork 21
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
minimise
error because not minimum found
#62
Comments
Same happens in master. |
I think is something numerical happening here,
|
Ah interesting. It should be easy to work out what's going on by debugging or printing out exactly what's being calculated, then. |
Yeah, I been doing that. If I come up with a solution I'll post a PR. :) |
The easiest way is to change the
to
but there is not needed it to be The most robust solution is to change the Which one you think is better? I have PR's for both. cc @dpsanders |
The problem surged originally because the partition that was computed had the same An even smaller example that fails is the next
|
Sorry I still don't see what exactly is going on. |
The problem arise because of several things. First the (unique) real In the second pass of the loop, it happens that the bisections In the third run of the loop the interval not containing the true Finally the algorithm continues but never finds an interval containing the true global minimum with the desired acuracy. When the loop finished The robust solution is to use |
The problem is that this solution can make worst the cases where you have repeated variables in the expression. But I think is better to have this instead of crashing. |
minimise
error beacuse not minimum foundminimise
error because not minimum found
While working on a project I found that
minimise
throwed an error because I didn't find a minimum. The MWE is the nextIntervalOptimisation.jl
version isv0.4.3
,versioninfo()
isThe text was updated successfully, but these errors were encountered: