-
Notifications
You must be signed in to change notification settings - Fork 214
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
Success when none of convergence measures is satisfied #806
Comments
Sometimes |
It seems it works! is it somewhere in the docs? And does the "bad case" has any meaning? |
I'm not sure... @pkofod? |
And we should really make that the default... |
It is probably mentioned under options, but I'm not sure it's mentioned specifically anywhere. It should definitely not write success in that case, so if you can provide the original problem that would be awesome. Aslo what version of Optim were you on? There was a bug that if the line search failed (no decrease ould be found) it would print success. You might not have had that bug fix when doing this.
We should discuss this elsewhere. I'm not sure it's also too wise. I did change it so that bfgs is only updated if d(y, s) is positive, but we don't want to update BFGS at least, because an increasing function will definitely not fulfill the wolfe conditions. |
An increasing objective function is not the fault of the user, it's a defect in the algorithms, so we definitely should not stop. Maybe print a warning? With LBFGS I never had any problems with |
I am pretty sure I was using the current version of Optim. I will try to create a simplified MWE, however it may take some time. |
Hi, here is the MWE
|
I'm not sure why we should only stop if it's the fault of the user? Sometimes numerical algorithms fail. But we can try it 🤷♂️ some sort of benchmarking would be nice though.
Thanks, so an outer iteration "fails" to decrease the objective here. That might be ok. |
Not smooth optimization algorithms. There's really no excuse to fail if eg fixed-step gradient descent works. Of course that's tricky to get right, but that's the aim. |
Yeah I get what you're saying, and I agree. |
I switched to allowing increases. |
Hi,
I optimizing my function, and I've got the following output
Why is it a successful run, while none of the convergence measures is satisfied? I used following options
Unfortunately, my function is too long to write it in here
The text was updated successfully, but these errors were encountered: