Skip to content

Commit fc03c3f

Browse files
committed
fix docs
1 parent 916b499 commit fc03c3f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/src/examples/ASIR.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ eqs = [Dₜ(S) ~ μₙ * S - μₘ * S - θ * α * S * Iₛ - (1 - θ) * α * S
1515
Dₜ(Rₐ) ~ βₐ * Iₐ - ρ * Rₐ
1616
Dₜ(Rₛ) ~ (1 - ωₛ) * βₛ * Iₛ - ρ * Rₛ
1717
Dₜ(D) ~ ωₛ * βₛ * Iₛ]
18-
@named asir = ODESystem(eqs)
19-
prob = ODEProblem(asir, [], (0, 110.0))
18+
@named asir = ODESystem(eqs, t)
19+
sys = structural_simplify(asir)
20+
prob = ODEProblem(sys, [], (0, 110.0))
2021
sol = solve(prob)
2122
plot(sol)
2223
```

docs/src/examples/Carcione2020.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sys = structural_simplify(odesys)
2424
@unpack Infected, Exposed, Deceased, Recovered, Total_population, Susceptible = sys
2525
@unpack alpha, epsilon, gamma, mu, beta, City = sys
2626
tspan = (0.0, 1.0)
27-
prob = ODEProblem(odesys, [], tspan, [])
27+
prob = ODEProblem(sys, [], tspan, [])
2828
sol = solve(prob, Rodas5())
2929
plot(sol, idxs = Deceased)
3030
```

docs/src/examples/SEIRHD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ eqs = [T ~ S + E + I + R + H + D
1818
Dₜ(R) ~ γ₁ * I + γ₂ * H
1919
Dₜ(H) ~ δ * I - (μ + γ₂) * H
2020
Dₜ(D) ~ μ * H];
21-
@named seirhd = ODESystem(eqs)
21+
@named seirhd = ODESystem(eqs,t)
2222
seirhd = structural_simplify(seirhd)
2323
prob = ODEProblem(seirhd, [], (0, 110.0))
2424
sol = solve(prob)

0 commit comments

Comments
 (0)