-
Notifications
You must be signed in to change notification settings - Fork 23
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
Review of the MA27 interface #116
Conversation
…ves the issue with byrd and hs015
Oh dear! Amateur issues! Good spot! Very strange that valgrind didn't notice the size issue. I noticed that we're now copying the entries of the matrix into the factor array twice. We call |
Absolutely! It turns out we actually get the sparsity pattern from the ASL function |
… at every iteration + minor changes
The while loop is a good idea! However, I would introduce an upper limit on how often it can reallocate memory. When Hessians have illegal values in them e.g. a |
Good idea. I would set an upper bound of (say) 5 factorization attempts, and I would check the Hessian values beforehand ;) |
Fixed following bugs:
ikeep
has size3n
, not3nnz
;factor
that initially contains the matrix entries, then the factors after a call toMA27BD
, must be initialized indo_numerical_factorization()
. This solves the issue with thebyrd
preset onhs015
mentioned in MA27 interface #115.Cleaned up the factorization function (replaced recursive calls with while loop).
cc @worc4021