-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Add support for user-defined multivariate hessians #2961
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2961 +/- ##
=======================================
Coverage 96.13% 96.13%
=======================================
Files 32 32
Lines 4135 4141 +6
=======================================
+ Hits 3975 3981 +6
Misses 160 160
Continue to review full report at Codecov.
|
8608d59
to
fe4a10d
Compare
I added a tutorial. Preview is here: https://jump.dev/JuMP.jl/previews/PR2961/tutorials/nonlinear/user_defined_hessians/ I think this is quite nice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It overall looks good to me, apart of a few minor comments. I must say that the tutorial is very nice.
Also: would it be possible to add a warning telling explicitly that sparse Hessian are not supported in user-registered function?
I made your changes.
I don't know if we need to warn that something doesn't exist. There's no way for the user to specify a sparse hessian. I say we let this go out into the wild with little fanfare and see how people end up using it, and whether it makes a performance difference. |
I'll plan to merge this in a few days unless anyone wants to review beforehand. At the JuMP side, this is a pretty minor change. It's also opt-in, so it shouldn't affect anyone. |
I'd like to take a look at this, but it may be a couple days before I get a chance. |
How's this now? |
Refactor of #2953
Requires jump-dev/MathOptInterface.jl#1819
Closes #1198