Hi,
function circ_local_time(x)
_prob = remake(prob,u0=x[1:3],p=x[4:end])
sol = solve(_prob,Tsit5(), reltol=1e-6, abstol=1e-6,saveat=savetime)
sol[LV.p]
end
St = ForwardDiff.jacobian(circ_local_time,[u0;p])
x = LinRange(0,1,100)
plot(x,St[:,12])
When I run the above code I can see how the sensitivity of the parameter changes during a cycle. However, when I add another output eg
function circ_local_time(x)
_prob = remake(prob,u0=x[1:3],p=x[4:end])
sol = solve(_prob,Tsit5(), reltol=1e-6, abstol=1e-6,saveat=savetime)
[sol[LV.p], **sol[LV.V]]**
end
St = ForwardDiff.jacobian(circ_local_time,[u0;p])
x = LinRange(0,1,100)
plot(x,St[:,12])
the output St is
2×12 Matrix{Vector{ForwardDiff.Dual{ForwardDiff.Tag{typeof(circ_local_time), Float64}, Float64, 12}}}
Which I am not sure I fully understand what this is saying to me.
Any help appreciated
Cheers,
Harry