-
Notifications
You must be signed in to change notification settings - Fork 603
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
Preconditioners not wrapped in C++ ... #177
Comments
I'd try mimic the existing code, set_min_objective is what's most similar: In nlopt.h (C API)
this is wrapped in nlopt-in.hpp as:
What changes is that you may have to create a new struct equivalent to myfunc_data adapted for the preconditioner signature nlopt_precond:
nlopt_precond is declared as follows:
also there is a std::vector prototype for set_min_objective, you might want to add the same. |
Thanks @jschueller. It turns out that my current problem is better posed as a (quite non-linear) bounded root-finding exercise, so I might not get to this straight away. But I'd like to get it running for other problems, and your comments are really helpful. |
...and therefore also not implemented in fortran (#52), python, etc.
The NLOPT_LD_CCSAQ algorithm allows the user to supply an approximation to the Hessian, via
the
set_precond_min_objective()
andset_precond_max_objective()
functions. Unfortunately, it looks like these are not included in nlopt-in.hpp (at least I assume this is the problem). I'm not well-versed in writing wrappers; can someone give me a hand to implement the changes?The text was updated successfully, but these errors were encountered: