-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Adjoint Sensitivity Out of Place Support #113
Comments
The adjoint method is currently only for in-place functions of mutable vectors. It seems you have a scalar ODE which won't work. FWIW, there's no speed advantage to adjoint methods when you have a scalar ODE anyways. |
Thanks! The same thing goes for the forward sensitivity using ODELocalSensitivityProblem ? |
About compatibility? Yes, it needs in-place for now. But ForwardDiff.jl will likely be faster when it's just scalars. |
Very clear now! Thanks a lot. |
Just to be clear, it's not fundamental to the implementation, it's just not something that has been handled yet. |
I am solving the 1D KS equation using FDM. I transformed the PDE into a set of ODEs inside a function that I called DerSen.jl. I used RK4 to solve the ODEs and the solution I got is correct.
I would like to go further and compute the adjoint sensitivity of this model. My code is as follows:
and I get this error massage that I don't understand
The text was updated successfully, but these errors were encountered: