-
Notifications
You must be signed in to change notification settings - Fork 0
/
RUN_ME.m
79 lines (69 loc) · 3.4 KB
/
RUN_ME.m
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
% SCRIPT: RUN_ME
% AUTHOR: Fabian Santiago
% EMAIL: fsantiago3@ucmerced.edu
% DATE: 11/27/2022
%
% DESCRIPTION:
% Script shows how to use the code to run simulations and perform a
% global sensitivity analysis.
% Define cases to be numerically computed. These are the cases considered in the
% main text.
% CASES = [50000, 0, 0;... % [50000 = No class cap | No vaccination] (Baseline)
% 100, 0, 0;... % [100 student class cap | No vaccination]
% 50, 0, 0;... % [50 student class cap | No vaccination]
% 50000, 40, 50;... % [50000 = No class cap | vU=vD=40 | vG=vF=50 ]
% 100, 40, 50;... % [100 student class cap | vU=vD=40 | vG=vF=50 ]
% 50, 40, 50;... % [50 student class cap | vU=vD=40 | vG=vF=50 ]
% 50000, 80,100;... % [50000 = No class cap | vU=vD=80 | vG=vF=100]
% 100, 80,100;... % [100 student class cap | vU=vD=80 | vG=vF=100]
% 50, 80,100]; % [50 student class cap | vU=vD=80 | vG=vF=100]
% Used to test code. First row is the baseline case and is necessary for adding
% the reduction in cumulative infections (RECI) to plots.
CASES = [50000, 0, 0;... % [50000 = No class cap | No vaccination] (Baseline)
50, 40, 50]; % [50 student class cap | vU=vD=40 | vG=vF=50 ]
% Get parameter information
prms_info = fun_model_parameter_ranges;
% Number of samples from parameter space using Latin hypercube sampling
SubSampN = 1500*(sum(prms_info(:,1))+2);
% Reduced infection for 'far' contacts.
reduced_infect = 25; % Options: 25 (for 25%) or 10 (for 10%)
% Compute model solutions
fun_compute_model_solutions(CASES,reduced_infect,SubSampN)
% Compute Sobol indices for
% doubling time using all solutions in model_sols folder
compute_sobol_indices_doubling_time
% Compute Sobol indices
% over time using all solutions in model_sols folder
compute_sobol_indices_over_time
% Plot sensitivity of doubling time
class_scenario = 50; % Class cap scenario
undg_vax = 40; % Undergraduate vaccination
fac_grad_vax = 50; % Faculty vaccination
param_set = 'inf and con'; % Options: 'inf and con' OR 'init'
print_contact_info = true;
print_ylabel = true;
font_size = 16;
plot_sobol_indices_dt(class_scenario,...
undg_vax,fac_grad_vax,...
param_set,...
print_contact_info,...
print_ylabel,...
SubSampN,...
font_size)
% Plot sensitivity of cumulative infections over time
class_scenario = 50; % Class cap scenario
undg_vax = 40; % Undergraduate vaccination
fac_grad_vax = 50; % Faculty vaccination
param_set = 'init'; % Options: 'inf', 'con', OR 'init'
print_contact_info = true;
print_ylabel = true;
font_size = 16;
Sobol_order = 'FO'; % OPTIONS: 'TE' OR 'FO'
plot_sobol_indices_time(class_scenario,...
undg_vax,fac_grad_vax,...
param_set,...
print_contact_info,...
print_ylabel,...
Sobol_order,...
SubSampN,...
font_size)