Skip to content

Commit c4d11db

Browse files
committed
Adding control input to discretesystem test
1 parent 7abc81d commit c4d11db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/discretesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ eqs = [next_S ~ S-infection,
2222
next_R ~ R+recovery]
2323

2424
# System
25-
sys = DiscreteSystem(eqs,t,[S,I,R],[c,nsteps,δt,β,γ])
25+
sys = DiscreteSystem(eqs,t,[S,I,R],[c,nsteps,δt,β,γ]; controls = [β, γ])
2626

2727
# Problem
2828
u0 = [S => 990.0, I => 10.0, R => 0.0]
@@ -54,4 +54,4 @@ p = [0.05,10.0,0.25,0.1];
5454
prob_map = DiscreteProblem(sir_map!,u0,tspan,p);
5555
sol_map2 = solve(prob_map,FunctionMap());
5656

57-
@test Array(sol_map) Array(sol_map2)
57+
@test Array(sol_map) Array(sol_map2)

0 commit comments

Comments
 (0)