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

newton and newton cg freeze rather than stopping #497

Open
0xAlcibiades opened this issue Apr 26, 2024 · 3 comments
Open

newton and newton cg freeze rather than stopping #497

0xAlcibiades opened this issue Apr 26, 2024 · 3 comments

Comments

@0xAlcibiades
Copy link

I've seen a few times while developing that newton and newton cg will hang indefinitely sometimes in the case of non-convergence, pegging the CPU with no output.

@stefan-k
Copy link
Member

stefan-k commented May 1, 2024

Thank you for reporting! Could you provide a minimal example to reproduce the issue, please?

@gmanthey
Copy link

I think I've run into a similar issue with BFGS. I think the issue may be with the solvers starting a new optimization problem for the linesearch in the next_iter function, without passing on things like max_iters or timeout. So a single step may run essentially forever for more complex problems as the default of u64::MAX is used. I would think those options should be passed on even though the linesearch problem should be easier to solve.

@gmanthey
Copy link

In my case, changing the width tolerance of the linesearch also solved the issue, suggesting that this is in fact the root cause.

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

3 participants