-
-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Description
Solving an ODEProblem with parameters provided in the form of a dictionary Dict{Symbol, Any} results in the following error message:
ArgumentError: This problem does not support symbolic maps with 'remake', i.e. it does not have a symbolic origin. Please use 'remake' with the 'p' keyword argument as a vector of values, paying attention to parameter order.
Here's a simple example of what I'd like to do:
function lorenz!(du,u,p,t)
@unpack a, b, c = p
du[1] = a*(u[2]-u[1])
du[2] = u[1]*(b-u[3]) - u[2]
du[3] = u[1]*u[2] - c*u[3]
end
u0 = [1.0;0.0;0.0]
p = Dict{Symbol, Any}(
:a => 10.0,
:b => 28.0,
:c => 8/3,
)
tspan = (0.0,100.0)
prob = ODEProblem(lorenz!,u0,tspan,p)
sol = solve(prob,Tsit5())
If I am not mistaken, the above code worked in an earlier DifferentialEquations.jl version. Is there a way to get it work again?
Thank you for your time and effort developing/improving this package!
vboussange and oameye
Metadata
Metadata
Assignees
Labels
No labels