Skip to content
Snippets Groups Projects
Commit b5ed9acf authored by Bentriou Mahmoud's avatar Bentriou Mahmoud
Browse files

Fix: add init values in a simulated trajectory

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