-
Notifications
You must be signed in to change notification settings - Fork 10
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
Equality constraint hessian of vector valued function #168
Comments
Welcome! This is the right place. The |
Ah, great, I will try that next week and close! Thanks. Out of curiosity: if the hvp option is enabled ipopt will not be able to directly solve/invert the Hessian of the lagrangian, so does this mean that it switches to an iterative linear problem solver? I could probably research this with the ipopt docu, but if that is so, it may still be advantageous to allow direct Hessian descriptions. Also, if this works, maybe the documentation could be dited to reflect that as it currently reads as another method for hessian definitions of scalar valued functions. Edit: I did try and have an issue. Here is what I did:
This is with regardso to the "memoization" function of the other issue I opened. Regardless, the Hf function is then used like this:
I can call the Hf(x,v) function (with e.g. Hf(x,x)) and it has the size (62,73) where 62 is my number of equations and 73 the dimension of x.
that is followed by a bunch of layers on matrix multiplication, then to Zygote, to map and vector of functions and so forth. I also tried returning |
Here goes the minimal example (which can also be used in the other issue I opened).
|
Not sure if this is the right spot, sorry if not!
I would like to state (in my case for an optimization problem I would like to solve with ipopt) the equality constraints as a vector.
No problem doing that, as well as the gradient with "CustomGradFunction(f, g)".
That I can only use "CustomHessianFunction(f, g, h)" for scalar equations is a bit of a hassle. Is there a way to use this, maybe via the hvp option?
I know, it's annoying with these hessians of vector valued functions.
For reference: https://juliadiff.org/ForwardDiff.jl/stable/user/advanced/#Hessian-of-a-vector-valued-function
The text was updated successfully, but these errors were encountered: