Skip to content

Commit b866c17

Browse files
Updating ParameterEstimation Benchmarks
1 parent 58e54e7 commit b866c17

File tree

3 files changed

+1505
-692
lines changed

3 files changed

+1505
-692
lines changed

benchmarks/ParameterEstimation/LorenzParameterEstimation.jmd

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,25 @@ LocIniPar = [9.0, 20.0, 2.0] # for local optimization
2525
```
2626

2727
```julia
28-
g1 = @ode_def LorenzExample begin
29-
dx = σ*(y-x)
30-
dy = x*(ρ-z) - y
31-
dz = x*y - β*z
32-
end σ ρ β
28+
@mtkmodel LorenzExample begin
29+
@parameters begin
30+
σ = 10.0 # Parameter: Prandtl number
31+
ρ = 28.0 # Parameter: Rayleigh number
32+
β = 8/3 # Parameter: Geometric factor
33+
end
34+
@variables begin
35+
x(t) = 1.0 # Initial condition for x
36+
y(t) = 1.0 # Initial condition for y
37+
z(t) = 1.0 # Initial condition for z
38+
end
39+
@equations begin
40+
D(x) ~ σ * (y - x)
41+
D(y) ~ x * (ρ - z) - y
42+
D(z) ~ x * y - β * z
43+
end
44+
end
45+
46+
@mtkbuild g1 = LorenzExample()
3347
p = [10.0,28.0,2.66] # Parameters used to construct the dataset
3448
r0 = [1.0; 0.0; 0.0] #[-11.8,-5.1,37.5] PODES Initial values of the system in space # [0.1, 0.0, 0.0]
3549
tspan = (0.0, 30.0) # PODES sample of 3000 observations over the (0,30) timespan

0 commit comments

Comments
 (0)