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

How to pass preconditioner? #122

Open
cossio opened this issue Oct 15, 2018 · 2 comments
Open

How to pass preconditioner? #122

cossio opened this issue Oct 15, 2018 · 2 comments

Comments

@cossio
Copy link

cossio commented Oct 15, 2018

I found very little documentation about this.

https://nlopt.readthedocs.io/en/stable/NLopt_Reference/#preconditioning-with-approximate-hessians

But that only explains the C interface, and says that only LD_CCSAQ supports preconditioners.

How is the interface in Julia? Is it possible to pass a preconditioner to LBFGS? Can I pass a sparse Hessian approximation (e.g., a diagonal matrix)?

See also https://discourse.julialang.org/t/how-to-pass-a-preconditioner-to-nlopt/16361

@giadasp
Copy link

giadasp commented Nov 30, 2018

Dear Cossio,
Did you solve your problem?
I'm interested in this issue as well.
Do you use JuMP or NLopt directly?
I would like to give gradients to my objective function using the JuMP interface language but I'm not able to do it. Do you know how to do it?

Thank you for your attention

Giada

@cossio
Copy link
Author

cossio commented Nov 30, 2018

@giadasp I did not figure out how to pass a preconditioner to NLopt. But Optim has a documented API for this purpose, https://github.com/JuliaNLSolvers/Optim.jl,

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