Skip to content

Commit

Permalink
fixed example 2
Browse files Browse the repository at this point in the history
  • Loading branch information
helmutstrey committed Jan 25, 2024
1 parent efd4315 commit be9276e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ add_blox!.(Ref(g), blox)
create_adjacency_edges!(g, adj_matrix_lin)
@named final_system = system_from_graph(g, params)
final_delays = graph_delays(g)
sim_dur = 2000.0 # Simulate for 2 Seconds
final_system_sys = structural_simplify(final_system)
prob = ODEProblem(final_system_sys, [], (0.0, sim_dur),[])
sol = solve(prob, Tsit5(), saveat=1)
#plot(sol)
prob = DDEProblem(final_system_sys,
[],
(0.0, sim_dur),
constant_lags = final_delays)
alg = MethodOfSteps(Vern7())
sol_dde_no_delays = solve(prob, alg, saveat=1)
plot(sol_dde_no_delays)
```

0 comments on commit be9276e

Please sign in to comment.