Skip to content

Commit f8e3475

Browse files
Update modelingtoolkit_remake.jl
1 parent 692939c commit f8e3475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/downstream/modelingtoolkit_remake.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ push!(probs, OptimizationProblem(optsys, u0, p))
7070
k = ShiftIndex(t)
7171
@mtkcompile discsys = System(
7272
[x ~ x(k - 1) * ρ + y(k - 2), y ~ y(k - 1) * σ - z(k - 2), z ~ z(k - 1) * β + x(k - 2)],
73-
t; defaults = [x => 1.0, y => 1.0, z => 1.0])
73+
t; defaults = [x => 1.0, y => 1.0, z => 1.0, x(k-1) => 0.0, y(k-1) => 0.0, z(k-1) => 0.0])
7474
# Roundabout method to avoid having to specify values for previous timestep
7575
discprob = DiscreteProblem(discsys, p, (0, 10))
7676
for (var, v) in u0

0 commit comments

Comments
 (0)