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

Sparse Automatic Differentiation for Jacobians #57

Open
mjohnson541 opened this issue Jul 29, 2020 · 0 comments
Open

Sparse Automatic Differentiation for Jacobians #57

mjohnson541 opened this issue Jul 29, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request Priority: High High Priority

Comments

@mjohnson541
Copy link
Collaborator

mjohnson541 commented Jul 29, 2020

This is a continues some discussion from #28. Most reactors in RMS can be formulated in a sparse format, but have dense columns and rows for the thermodynamic variables (volume, temperature, etc.). By using dense Reverse Mode automatic differentiation with ReverseDiff, Tracker or Zygote we should be able evaluate the dense rows of the jacobian and then use SparseDiffTools and Sparse Forward Mode Auto Diff to evaluate the rest of the jacobian. This should be much faster than finite differences or typical automatic differentiation and the improvement should scale with mechanism size. There was some discussion of an automatic tool for this: JuliaDiff/SparseDiffTools.jl#112, but it should be relatively easy to implement ourselves without that. Need to resolve #54 mostly first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: High High Priority
Projects
None yet
Development

No branches or pull requests

2 participants