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

new user considering porting from CppAD #33

Open
a-jp opened this issue Feb 22, 2024 · 1 comment
Open

new user considering porting from CppAD #33

a-jp opened this issue Feb 22, 2024 · 1 comment

Comments

@a-jp
Copy link

a-jp commented Feb 22, 2024

Hi,

I currently use CppAD and was considering porting my codebase to use your library. I make use of gradient, jacobian, and hessian computations in cppad. The optimisation framework I'm using also makes use of the sparsity pattern that CppAD can compute for both jacobian and hessian matrices. Is there anything that I'm currently using from CppAD as per the above that's not currently provided in your library before I begin the porting work? Thanks

@rjhogan
Copy link
Owner

rjhogan commented Feb 22, 2024

Hi, while you should find that Adept is much faster than CppAD for the pure AD, it is missing some of the functionality you require. Firstly it only does first-order differentiation, so can't compute the Hessian of arbitrary functions, although as explained in section 4.1 of the documentation (https://www.met.reading.ac.uk/clouds/adept/adept_documentation.pdf), if your cost function is quadratic then you can compute a good approximation to the Hessian from the Jacobian, which Adept can calculate. Secondly there is no sparse array functionality, nor a way for Adept to report the sparsity pattern for Jacobian matrices.

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