You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
as shown here https://discourse.julialang.org/t/chaostools-tangent-integrator-stiff-solvers/26464, the tangent_integrator errors, if one provides an algorithm, which uses ForwardDiff.jl to calculate the Jacobian, etc. This is the case for all stiff solvers. One can avoid using auto-differentiation by passing autodiff=false to the algorithm, e.g. Rodas5(autodiff=false) but we often want this feature!
My problem is that I have to use a stiff solver. This leaves me two possibilities: using autodifferentiation, which at the moment, doesn't work or don't use autodifferentiation, which works for example with the Lorentz system, but with larger systems with complicated Jacobians (like the one I described in the discourse post) it is not an option for me because it runs practically forever (I waited 8+ hours before I stopped the process).
The MWE:
Hi,
as shown here https://discourse.julialang.org/t/chaostools-tangent-integrator-stiff-solvers/26464, the tangent_integrator errors, if one provides an algorithm, which uses ForwardDiff.jl to calculate the Jacobian, etc. This is the case for all stiff solvers. One can avoid using auto-differentiation by passing
autodiff=false
to the algorithm, e.g.Rodas5(autodiff=false)
but we often want this feature!The error is due to caching the Jacobi-matrix in the
create_tangent
function (https://github.com/JuliaDynamics/DynamicalSystemsBase.jl/blob/master/src/dynamicalsystem.jl#L343-L355)Especially line 346:
J = deepcopy(J)
.A workaround is described here http://docs.juliadiffeq.org/latest/basics/faq.html#I-get-Dual-number-errors-when-I-solve-my-ODE-with-Rosenbrock-or-SDIRK-methods.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: