Skip to content

Commit 8ec43e5

Browse files
Merge pull request #271 from jClugstor/bump_turing
Bump MTK and SciMLBase
2 parents a74a179 + 557d363 commit 8ec43e5

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EasyModelAnalysis"
22
uuid = "ef4b24a4-a090-4686-a932-e7e56a5a83bd"
33
authors = ["SciML"]
4-
version = "1.0.0"
4+
version = "1.0.1"
55

66
[deps]
77
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
@@ -25,15 +25,15 @@ DifferentialEquations = "7"
2525
Distributions = "0.25"
2626
GlobalSensitivity = "2"
2727
LinearAlgebra = "1"
28-
ModelingToolkit = "9.12"
28+
ModelingToolkit = "9.42"
2929
NLopt = "0.6, 1"
3030
Optimization = "3, 4"
3131
OptimizationBBO = "0.2, 0.3, 0.4"
3232
OptimizationNLopt = "0.2, 0.3"
3333
Plots = "1"
3434
Reexport = "1"
3535
SafeTestsets = "0.1"
36-
SciMLBase = "2.32.1"
36+
SciMLBase = "2.54"
3737
SciMLExpectations = "2"
3838
Test = "1"
3939
Turing = "0.33, 0.34"

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)

test/examples.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using Test
2020
@test imax > 0.3
2121

2222
# SEIRHD
23-
@variables S(t)=0.9 E(t)=0.05 I(t)=0.01 R(t)=0.2 H(t)=0.1 D(t)=0.01 T(t)=0.0 η(t)=0.0
23+
@variables S(t)=0.9 E(t)=0.05 I(t)=0.01 R(t)=0.2 H(t)=0.1 D(t)=0.01 T(t) η(t)
2424
@parameters β₁=0.6 β₂=0.143 β₃=0.055 α=0.003 γ₁=0.007 γ₂=0.011 δ=0.1 μ=0.14
2525
eqs = [T ~ S + E + I + R + H + D
2626
η ~ (β₁ * E + β₂ * I + β₃ * H) / T

test/threshold.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ eqs = [D(D(x)) ~ σ * (y - x),
9898
D(z) ~ x * y - β * z]
9999

100100
@mtkbuild sys = ODESystem(eqs, t)
101-
sys = structural_simplify(sys)
102101

103102
u0 = [D(x) => 2.0,
104103
x => 1.0,

0 commit comments

Comments
 (0)