-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
MethodError
when solving ODEForwardSensitivityProblem
with autodiff=true
and Rosenbrock23()
#944
Labels
Comments
topolarity
changed the title
Nov 30, 2023
MethodError
when solving ODEForwardSensitivityProblem with
autodiff=true and
Rosenbrock23()`MethodError
when solving ODEForwardSensitivityProblem
with autodiff=true
and Rosenbrock23()
Like the output suggests, using using LinearAlgebra, OrdinaryDiffEq, SciMLSensitivity
function circuit(du, u, p, t)
L, C = p
du[1] = (-u[1] - u[2] + sin(t)) / C
du[2] = (u[1] - u[2])/L
end
u0 = zeros(2)
tspan = (0.0, 2*pi)
p = [1.0, 1.0]
sprob = ODEForwardSensitivityProblem(circuit, p, tspan, p)
sol = solve(sprob, Rosenbrock23(autodiff=false)) I think it is vaguely related to this issue #35 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gives a MethodError when attempting to use autodiff:
The text was updated successfully, but these errors were encountered: