diff --git a/README.md b/README.md index 9f76e2b0c2..d93a18e3f7 100644 --- a/README.md +++ b/README.md @@ -83,13 +83,13 @@ eqs = [D(x) ~ σ * (y - x), D(y) ~ x * (ρ - z) - y, D(z) ~ x * y - β * z] -@mtkbuild lorenz1 = ODESystem(eqs) -@mtkbuild lorenz2 = ODESystem(eqs) +@named lorenz1 = ODESystem(eqs, t) +@named lorenz2 = ODESystem(eqs, t) @variables a(t) @parameters γ connections = [0 ~ lorenz1.x + lorenz2.y + a * γ] -@mtkbuild connected = ODESystem(connections, t, [a], [γ], systems = [lorenz1, lorenz2]) +@mtkbuild connected = ODESystem(connections, t, systems = [lorenz1, lorenz2]) u0 = [lorenz1.x => 1.0, lorenz1.y => 0.0,