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
OEP: more general state for user-supplied functions #306
Comments
I will try to fit this in when I have a shot at the dispatch based function interface. I intend to target this after #304 , as quite a few open issues are related to this. |
Currently #337 simply opens up the fields for storing gradients and hessians. This means that if you use the full constructor (with all the fields), you can input your own gradient type as storage as long as you've implemented
for your type I'm going to leave Newton alone for now, but I will try to make some stupid examples with the gradient, such as
just to make sure it works all the way through. Some changes might have to be made over at |
Should be possible with #337. If you create a |
It would be lovely to be able to support sparse Hessians, Jacobians (for constrained optimization), etc. It would be good to move to an API where one can supply HessState and JacState objects of any kind. The user-supplied functions would update the state at the current point, and then such state objects would have to support
J*x
andH\x
type of operations. ObviouslyH
could be a densen
-by-n
matrix, but it wouldn't have to be.The text was updated successfully, but these errors were encountered: