-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error with SolverBenchmark #121
Comments
I probably didn’t implement counters and structure because diagonal QN operators are only used in the nonsmooth solvers at this point. You are right that they should be added. |
@MaxenceGollier thanks for the issue. NLPModelsModifiers.jl/src/quasi-newton.jl Line 117 in 5e6e79f
It is a macro that redirects the counters field to the original nlp. I agree with @dpo it makes sense to have Hessian functions implemented for AbstractDiagonalQNModel |
@MaxenceGollier would you have some time to open two PRs for these two issues? |
I don't get it, This macro does not seem to work as if nlp is type QuasiNewtonNLP, then nlp.counters doesn't exist, what should I modify ? Just adding the field is not correct ? (as I did in #122) |
I have an issue for adding the hessian structure with the field nnzh of nlp.meta, I opened an issue in NLPModels.jl |
Actually, wouldn't this macro be more appropriate ?
since we want to access to the field |
Actually, the |
Just for reference, the meta discussion is connected to #29 |
I am trying to benchmark solvers on a Diagonal Quasi-Newton Model. I get two issues:
type DiagonalQNModel has no field counters
MethodError : no method matching hess_structure!(::NLPModelsModifiers.DiagonalQNModel{...},...)
Here is an example
There is no reason for not having a
hess_structure!
method at least for the DiagonalQNModel type because it is trivial. I can also add the counters as a field of the different structures if you think it is appropriate.The text was updated successfully, but these errors were encountered: