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

[Nonlinear] allow univariate operators with only gradient information #2542

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

odow
Copy link
Member

@odow odow commented Sep 2, 2024

Closes #2534

try
_validate_register_assumptions(f′, op, 1)
f′′ = _checked_derivative(f′, op)
return _UnivariateOperator(f, f′, f′′)
Copy link
Member Author

@odow odow Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess one open question is this behavior: do we always try to ForwardDiff f′ and fall back to not providing the Hessian if it fails?

@odow
Copy link
Member Author

odow commented Sep 9, 2024

@odow
Copy link
Member Author

odow commented Sep 9, 2024

D'oh. This will break a test in JuMP, because now univariate operators do not need Hessians. I should remove that test before we release this.

@odow odow merged commit 2401296 into master Sep 9, 2024
70 of 72 checks passed
@odow odow deleted the od/univariate branch September 9, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Univariate user-defined functions with the multivariate signature
1 participant