-
Notifications
You must be signed in to change notification settings - Fork 46
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
Tolerance-Value dependence of Output #124
Comments
Have you checked your gradients, e.g. against ForwardDiff.jl or even finite differences, for some random points? That is the most common source of problems. |
Thanks for the answer, what do you exactly mean by checking the gradients? What I did is, I used forwardDiff to check the gradient around the optimal points that I only get when I played around with the tolerance values. The gradient exists and exhibits the correct values. Thanks a lot! |
What
The expression for the gradient in |
Thanks @mzaffalon Thank you very much and merry Christmas! |
Are you saying that you took a totally random value of |
no, I am saying that when I calculate the gradient with, for instance, forwarddiff.jl and apply random values for x then I get some random value that is not zero. However, for the two different values of x that I get from my optimization with different tolerance values, the gradient is in both cases essentially zero. Hence my conclusion of multiple equilibria. |
The list of global optimizers is here but I have never used them. In Julia, you want like to call |
Thanks a lot, that is very helpful |
Closing as stale and because this doesn't look like an issue in NLopt. |
Hi,
I am running a loop over different parameter values whereas in each I use MMA to solve a problem involving an inequality constraint. However, at some parameter values (even if the assure that the constraint is never binding) the results start to become funny in a sense that they are not the max anymore (for a slight parameter change, results drop massively. I tested that the outputs are non-optimal). My code is
When I change the tolerance values then it might work for some parameter values, but still not for others. Bottom line, I don't find a way to assure the solver does not fail to find the optimum consistently for all exogenous values.
Do you have any suggestions what might be the issue?
Thanks a lot and merry Christmas
The text was updated successfully, but these errors were encountered: