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

Is it possible to provide the gradient and Hessian matrices by user? #145

Open
Zcaic opened this issue Sep 12, 2024 · 1 comment
Open

Is it possible to provide the gradient and Hessian matrices by user? #145

Zcaic opened this issue Sep 12, 2024 · 1 comment

Comments

@Zcaic
Copy link

Zcaic commented Sep 12, 2024

I found there is blackbox to define user function, but the gradient is get by finite difference. If I have gradient info, even Hessian information, can I offer these informations to blackbox ?

@cdhainaut
Copy link
Contributor

Quick answer is yes.
Although I think this is a more CasADi (the underlying AD lib that uses AeroSandbox) related topic.
You should have a look at CasADi Callback class.
Some ressources:
https://web.casadi.org/docs/#sec-callback
https://github.com/casadi/casadi/blob/main/docs/examples/python/callback.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants