-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support different ways to store the Hessian and Jacobian (apart of COO format) #2
Comments
Some solvers may only implement one specific structure. E.g. Ipopt only supports COO structure for both jacobian and hessian. The user on the other hand want to describe only one structure and not have to change the structure depending on the solver. Another advantage of this: suppose you want to implement a bridge that create a |
That's a great idea, I think a bridge is a good candidate for this.
As far as I know, the different solvers support:
Another question about the |
Currently, MOI supports only passing the Jacobian and the Hessian in COO format:
https://github.com/jump-dev/MathOptInterface.jl/blob/master/src/nlp.jl#L123-L134
https://github.com/jump-dev/MathOptInterface.jl/blob/master/src/nlp.jl#L149-L157
Would it be possible to extend MOI to support other formats for the Jacobian/Hessian?
One idea would be to extend
MOI.jacobian_structure
to return the structure required by the current evaluator:The text was updated successfully, but these errors were encountered: