-
Notifications
You must be signed in to change notification settings - Fork 10
Reuse Arpack in order to compute norm of Bk #159
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
Reuse Arpack in order to compute norm of Bk #159
Conversation
Please hold off on merging for now, as some tests are affected by #42 . @nathanemac you can try to merge this PR locally with R2N in order to use ADNLPModels |
@MohamedLaghdafHABIBOULLAH, using
|
@nathanemac thanks for the confirmation, we believe that Arrack may be more accurate than TSVD, but still have some bugs... |
This PR should address the problem encountered in this issue #42 |
Just wondering, @MohamedLaghdafHABIBOULLAH, is it possible to use the frobenius norm instead of the operator norm for your algorithm ? |
@MaxenceGollier yes one could and it has been discussed in the paper and in this issue #133 , however I'm afraid that the solver will become slower as the step size is related to 1/|B_k|, in this case the Frobenius norm might represent a loose bound on the operator norm or the largest eig norm. |
You can’t compute the Frobenius norm of a quasi-Newton operator without a lot of work. |
@MohamedLaghdafHABIBOULLAH can we add a wrapped allocs unit test to be sure that opnorm does not allocate as well ? |
Arpack actually uses restarted Lanczos or Arnoldi iterations and allocates, wouldn't it be easier to try to make something work with |
It sure does allocate, but I can add it, although it's not the objective of this package. |
Does Krylov contain any solver that enable to approximate the opnorm ? |
Co-authored-by: Dominique <[email protected]>
Use alphabetical order for external dependencies and remove unused variables.
Enhance robustness of Arpack usage by catching NCV-related errors Catch the XYAUPD_Exception error in Arpack calls and dynamically increase NCV as needed to handle convergence issues. This modification addresses instability in LSR1 computations due to insufficient NCV.
Co-authored-by: Dominique <[email protected]>
6621b0f
to
f368164
Compare
What do you think, @dpo? The issue is that we're almost certain the tests will fail… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests fail. Did you test these changes locally? It doesn’t look like you did.
I apologize, indeed because we added R2N recently, I should have taken into account the way it computes the norm of Bk as well. |
Co-authored-by: Dominique <[email protected]>
Thank you. |
Based on this commit 48e6f01#diff-72ed386c2a0cd1d23c0968297e70023ed98c22490d146dd89fc91f48369bad4dL7