Commit b5ed9acf authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

Fix: add init values in a simulated trajectory

parent 0612a80d
......@@ -47,9 +47,10 @@ end
function simulate(m::ContinuousTimeModel)
# trajectory fields
full_values = zeros(0, m.d)
times = zeros(0)
transitions = Vector{Union{String,Nothing}}(undef,0)
full_values = zeros(1, m.d)
full_values[1,:] = m.x0
times = Float64[m.t0]
transitions = Union{String,Nothing}[nothing]
# values at time n
n = 0
xn = m.x0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment