Skip to content
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

Uniformly check conditions #91

Open
pkofod opened this issue Apr 5, 2018 · 5 comments
Open

Uniformly check conditions #91

pkofod opened this issue Apr 5, 2018 · 5 comments

Comments

@pkofod
Copy link
Member

pkofod commented Apr 5, 2018

like

if vecnorm(s) == 0
    Base.error("Step direction is zero.")
end
@mohamed82008
Copy link
Contributor

Hmm, won't this be a problem for non-smooth optimization if the gradient happens to be exactly 0 at the neighborhood of the minimum? Think of a cut-off abs function.

@pkofod
Copy link
Member Author

pkofod commented Apr 8, 2018

What good is a line search if the search direction is the zero element ? It’ll take the exact same step whatever alpha is .

@mohamed82008
Copy link
Contributor

Isn't that a sign of convergence to a local optimum point, unless I missed something?

@pkofod
Copy link
Member Author

pkofod commented Apr 8, 2018

Exactly ? The test I’m describing here will terminate the line search immediately if the search direction is zero.

@pkofod
Copy link
Member Author

pkofod commented Apr 8, 2018

Ah, now I think I know what you mean, it should not error of course, just stop :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants