-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSIR_Model_Tutorial.2mdl
More file actions
252 lines (229 loc) · 7.64 KB
/
SIR_Model_Tutorial.2mdl
File metadata and controls
252 lines (229 loc) · 7.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{UTF-8}
quarantine trigger=
1000
~ people [100,3000,100]
~ |
"quarantine allowance % of daily contacts"=
40
~ Dmnl [0,100,5]
~ |
baseline contacts per day per infected person=
6
~ 1/Day [2,20,2]
~ |
contacts per day per infected person=
baseline contacts per day per infected person*quarantine rules
~ 1/Day [1,12,1]
~ |
quarantine rules=
MIN(1 / (1 + EXP(quarantine sharpness * (Infected Population - quarantine trigger)))\
+ "quarantine allowance % of daily contacts"/100 , 1)
~ Dmnl
~ |
quarantine sharpness=
0.02
~ 1/people [0.005,0.05,0.005]
~ |
affected population=
Infected Population+Recovered Population
~ people
~ |
dangerous contacts per day=
total contacts per day*fr susceptible
~ people/Day
~ |
duration of infection=
2
~ Day [1,14,1]
~ |
fr susceptible=
Susceptible Population/total population
~ Dmnl
~ |
Infected Population= INTEG (
infections-recoveries,
2)
~ people
~ |
infections=
dangerous contacts per day*infectivity
~ people/Day
~ |
infectivity=
0.25
~ Dmnl [0.05,1,0.05]
~ |
Recovered Population= INTEG (
recoveries,
0)
~ people
~ |
recoveries=
Infected Population/duration of infection
~ people/Day
~ |
Susceptible Population= INTEG (
-infections,
9998)
~ people
~ |
total contacts per day=
contacts per day per infected person*Infected Population
~ people/Day
~ |
total population=
Susceptible Population+affected population
~ people
~ |
********************************************************
.Control
********************************************************~
Simulation Control Parameters
|
FINAL TIME = 60
~ Day
~ The final time for the simulation.
|
INITIAL TIME = 0
~ Day
~ The initial time for the simulation.
|
SAVEPER =
TIME STEP
~ Day [0,?]
~ The frequency with which output is stored.
|
TIME STEP = 0.1
~ Day [0,?]
~ The time step for the simulation.
|
\\\---/// Sketch information - do not modify anything except names
V300 Do not put anything below this section - it will be ignored
*Stock and Flow Diagram
$-1--1--1,0,|12||-1--1--1|-1--1--1|-1--1--1|-1--1--1|-1--1--1|96,96,75,0
10,1,Susceptible Population,443,428,72,50,3,3,0,56,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20|B|0-0-0,0,0,0,0,0,0
10,2,Infected Population,874,420,76,51,3,3,0,56,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20|B|0-0-0,0,0,0,0,0,0
10,3,Recovered Population,1339,423,77,49,3,3,0,56,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20|B|0-0-0,0,0,0,0,0,0
1,4,6,1,100,0,0,22,0,192,0,-1--1--1,,1|(584,423)|
1,5,6,2,4,0,0,22,0,192,0,-1--1--1,,1|(731,423)|
11,6,0,659,423,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,7,infections,659,452,64,21,40,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
1,8,10,2,100,0,0,22,0,192,0,-1--1--1,,1|(1030,421)|
1,9,10,3,4,0,0,22,0,192,0,-1--1--1,,1|(1192,421)|
11,10,0,1116,421,6,8,34,3,0,0,1,0,0,0,0,0,0,0,0,0
10,11,recoveries,1116,452,61,23,40,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,12,total population,325,188,66,33,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,13,affected population,1118,179,61,36,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,14,infectivity,662,264,63,18,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,15,dangerous contacts per day,409,671,85,47,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,16,total contacts per day,674,643,71,41,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,17,duration of infection,1280,537,63,28,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,18,contacts per day per infected person,915,651,110,31,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
10,19,fr susceptible,126,658,67,38,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
1,20,1,12,1,0,0,0,0,192,0,-1--1--1,,1|(436,282)|
1,21,14,6,1,0,0,0,0,192,0,-1--1--1,,1|(641,351)|
1,22,2,13,1,0,0,0,0,192,0,-1--1--1,,1|(929,265)|
1,23,3,13,1,0,0,0,0,192,0,-1--1--1,,1|(1285,254)|
1,24,13,12,1,0,0,0,0,192,0,-1--1--1,,1|(707,141)|
1,25,1,19,1,0,0,0,0,192,0,-1--1--1,,1|(208,501)|
1,26,12,19,1,0,0,0,0,192,0,-1--1--1,,1|(162,335)|
1,27,15,7,1,0,0,0,0,192,0,-1--1--1,,1|(546,537)|
1,28,16,15,1,0,0,0,0,192,0,-1--1--1,,1|(579,674)|
1,29,18,16,1,0,0,0,0,192,0,-1--1--1,,1|(790,694)|
1,30,2,16,1,0,0,0,0,192,0,-1--1--1,,1|(771,517)|
1,31,2,11,1,0,0,0,0,192,0,-1--1--1,,1|(1025,496)|
1,32,17,11,1,0,0,0,0,192,0,-1--1--1,,1|(1164,529)|
12,33,0,1938,399,427,271,8,15,0,40,1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
SIR_Graph
12,34,0,1942,991,430,307,8,15,0,40,2,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
Infected Population,Graph
1,35,19,15,1,0,0,0,0,192,0,-1--1--1,,1|(237,682)|
10,36,quarantine rules,1222,653,71,38,8,3,0,42,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||255-0-0,0,0,0,0,0,0
1,37,36,18,1,0,0,0,0,192,0,-1--1--1,,1|(1054,697)|
1,38,2,36,1,0,0,0,0,192,0,-1--1--1,,1|(1003,579)|
10,39,quarantine sharpness,970,822,72,30,8,3,0,42,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||255-0-0,0,0,0,0,0,0
10,40,quarantine trigger,1175,819,66,28,8,3,0,42,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||255-0-0,0,0,0,0,0,0
1,41,39,36,1,0,0,0,0,192,0,-1--1--1,,1|(1125,745)|
1,42,40,36,1,0,0,0,0,192,0,-1--1--1,,1|(1223,769)|
10,43,baseline contacts per day per infected person,702,820,122,32,8,3,0,40,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
1,44,43,18,1,0,0,0,0,192,0,-1--1--1,,1|(855,750)|
10,45,"quarantine allowance % of daily contacts",1383,821,100,56,8,3,0,42,-1,0,0,0,0-0-0,0-0-0,Times New Roman|20||255-0-0,0,0,0,0,0,0
1,46,45,36,1,0,0,0,0,192,0,-1--1--1,,1|(1374,737)|
\\\---/// Sketch information - do not modify anything except names
V300 Do not put anything below this section - it will be ignored
*Policy Analysis
$-1--1--1,0,|12||-1--1--1|-1--1--1|-1--1--1|-1--1--1|-1--1--1|96,96,100,0
12,1,0,330,128,81,97,8,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
baseline contacts per day per infected person,0,0,0
12,2,0,329,273,80,65,0,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
quarantine sharpness,0,0,0
12,3,0,330,391,80,65,0,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
quarantine trigger,0,0,0
12,4,0,118,135,80,65,0,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
duration of infection,0,0,0
12,5,0,120,259,78,67,8,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
infectivity,0,0,0
12,6,0,774,206,335,216,8,15,0,0,1,0,0,0,0,0,0,0,0,0
SIR_Graph
12,7,0,1475,206,365,215,8,15,0,0,2,0,0,0,0,0,0,0,0,0
Infected Population,Graph
12,8,0,776,674,335,248,8,15,0,0,2,0,0,0,0,0,0,0,0,0
quarantine rules,Graph
12,9,0,328,531,82,69,8,79,0,40,0,0,0,0,0-0-0,0-0-0,Times New Roman|20||0-0-0,0,0,0,0,0,0
"quarantine allowance % of daily contacts",0,0,0
///---\\\
:GRAPH SIR_Graph
:TITLE SIR Graph
:X-AXIS Time
:SCALE
:VAR Susceptible Population
:UNITS S-People
:Y-MIN 0
:Y-MAX 10000
:DATASET
:SCALE
:VAR Infected Population
:UNITS I-People
:Y-MIN 0
:Y-MAX 10000
:DATASET
:SCALE
:VAR Recovered Population
:DATASET
:L<%^E!@
1:Quarantine Slider.vdfx
1:Quarantine 30%, Trigger 1000.vdfx
1:Quarantine 50%, Trigger 1000.vdfx
1:Quarantine 40%, Trigger 1000.vdfx
1:Baseline.vdfx
4:Time
5:quarantine sharpness
9:Quarantine Slider
19:100,1
24:0
25:60
26:60
23:0
15:0,0,0,0,0,0
27:0,
34:0,
42:0
72:0
73:0
95:0
96:0
97:0
77:0
78:0
102:1
93:0
94:0
92:0
91:0
90:0
87:0
75:
43:
103:8,8,8,3,8
105:0,0,0,0,0,0,0,0,0,0
104:Courier|12||0-0-0|0-0-0|-1--1--1|0-0-255|192-192-192|-1--1--1