Reference
Global simulation configuration parameters.
This class stores all model-wide constants used in the discrete-event simulation, including runtime settings, resource capacities, operational constraints, diagnosis-based length-of-stay (LOS) values, cost parameters, and state flags modified during execution. All attributes are class variables and are intended to be accessed without instantiation.
Attributes:
| Name | Type | Description |
|---|---|---|
sim_duration |
int
|
Total simulated time in minutes (default: 525600, one year). |
number_of_runs |
int
|
Number of simulation replications. |
warm_up_period |
float
|
Number of minutes considered warm-up (not included in statistics), defined as one-fifth of the total simulation time. |
patient_inter_day |
int
|
Interarrival time (minutes) for daytime patient generation. NOTE that this is not used in entirely the way that you might expect. This may be changed in future. NOTE that this has now been changed to be used directly as an average IAT, but this may change in future. This supersedes the previous note. |
patient_inter_night |
int
|
Interarrival time (minutes) for nighttime patient generation. NOTE that this is not used in entirely the way that you might expect. This may be changed in future. NOTE that this has now been changed to be used directly as an average IAT, but this may change in future. This supersedes the previous note. |
number_of_nurses |
int
|
Number of nurses available in the system. |
mean_n_consult_time |
int
|
Mean consultation time in minutes. |
mean_n_ct_time |
int
|
Mean CT processing time in minutes. |
number_of_ctp |
int
|
Number of CT processing units available. |
sdec_beds |
int
|
Number of SDEC (Same Day Emergency Care) beds. |
mean_n_sdec_time |
int
|
Mean SDEC stay duration in minutes. |
number_of_ward_beds |
int
|
Number of inpatient ward beds. |
mean_n_i_ward_time_mrs_0 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (0). |
mean_n_i_ward_time_mrs_1 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (1). |
mean_n_i_ward_time_mrs_2 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (2). |
mean_n_i_ward_time_mrs_3 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (3). |
mean_n_i_ward_time_mrs_4 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (4). |
mean_n_i_ward_time_mrs_5 |
int
|
Inpatient LOS (minutes) for ischemic stroke by modified Rankin Scale (5). |
mean_n_ich_ward_time_mrs_0 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (0). |
mean_n_ich_ward_time_mrs_1 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (1). |
mean_n_ich_ward_time_mrs_2 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (2). |
mean_n_ich_ward_time_mrs_3 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (3). |
mean_n_ich_ward_time_mrs_4 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (4). |
mean_n_ich_ward_time_mrs_5 |
int
|
Inpatient LOS (minutes) for intracerebral hemorrhage by MRS score (5). |
mean_n_non_stroke_ward_time |
int
|
LOS (minutes) for non-stroke patients (TODO: CHECK INTERPRETATION). |
mean_n_tia_ward_time |
int
|
LOS (minutes) for TIA patients. |
thrombolysis_los_save |
float
|
Proportional reduction in LOS for thrombolysed patients.
This is used as a multiplier with the sampled length of stay.
For example, if a patient has a LOS of 10 days, and the value of
|
mean_mrs |
int
|
Default/mean modified Rankin Scale score used in the model. |
ich |
int
|
Percentage likelihood of intracerebral hemorrhage diagnosis (TODO: CHECK INTERPRETATION). |
i |
int
|
Percentage likelihood of ischemic stroke diagnosis. |
tia |
int
|
Percentage likelihood of TIA diagnosis. |
stroke_mimic |
int
|
Percentage likelihood of stroke mimic diagnosis. |
tia_admission |
int
|
Percentage chance that a TIA requires admission. |
stroke_mimic_admission |
int
|
Percentage chance that a stroke mimic requires admission. |
sdec_dr_cost_min |
float
|
Cost per minute for SDEC doctor time. |
sdec_bed_day_saving |
float
|
The number of bed days an SDEC admission is assumed to save. This is used in calculating the potential savings from SDEC usage. |
inpatient_bed_cost |
float
|
Cost of a standard inpatient bed stay, per day. |
inpatient_bed_cost_thrombolysis |
float
|
Cost of an inpatient stay following thrombolysis, per day. |
sdec_unav_time |
int
|
Operational unavailability duration of SDEC |
sdec_unav_freq |
int
|
How often SDEC unavailability duration occurs |
ctp_unav_time |
int
|
Operational unavailability duration of CT perfusion scanner |
ctp_unav_freq |
int
|
How often CT perfusion unavailability duration occurs |
sdec_unav |
bool
|
Indicates whether SDEC is unavailable. |
ctp_unav |
bool
|
Indicates whether CT processing is unavailable. |
write_to_csv |
bool
|
Whether the simulation should write results to CSV. |
gen_graph |
bool
|
Whether visualisation graphs should be generated. |
therapy_sdec |
bool
|
Whether therapy is delivered through SDEC. |
trials_run_counter |
int
|
Internal counter tracking completed simulation replications. |
patient_arrival_gen_1 |
bool
|
Flag used by the simulation to control one patient arrival stream. |
patient_arrival_gen_2 |
bool
|
Flag used by the simulation to control a second patient arrival stream. |
master_seed |
int
|
Master random seed used to adjust the underlying seeds used to populate the random number streams. Trials run without changing parameters or the master seed will be consistent. |
Notes
GENAI declaration (SR): this docstring has been generated with the aid of ChatGPT 5.1. All generated content has been thoroughly reviewed.
Source code in src/stroke_ward_model/inputs.py
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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | |