-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameter_estimation_and_sampling.m
47 lines (34 loc) · 1.06 KB
/
parameter_estimation_and_sampling.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
clear all
close all
clc
%%% Check toolboxes
if ~contains(path, "SBPD")
disp('Please check SBtoolbox installation - download from: http://www.sbtoolbox2.org/main.php')
else
%%
msg = "What to run?";
menu_opt = [ "Run parameter estimation - using the training dataset (figure 2)"...
"Run parameter MCMC sampling - PESTO toolbox (figure 2)"...
"Run calibration to validation data baseline - using the parameterset correpsonding to the best modelfit"...
"Run calibration to validation data baseline - looping over all sampled parametersets (figure 3,4,5 and 6)" ];
choice = menu(msg,menu_opt);
%%
addpath('./Models/');
modelName = 'nafldv5';
cd ./Models
SBPDmakeMEXmodel(SBmodel(strcat(modelName,'.txt')))
cd ..
if choice == 1
run('./CODE/setup')
run('./CODE/ESTIMATION/run_estimation_ess.m')
elseif choice == 2
run('./CODE/setup')
run('./CODE/ESTIMATION/run_sampling.m')
elseif choice == 3
run('./CODE/setup')
run('./CODE/ESTIMATION/run_calibration.m')
elseif choice == 4
run('./CODE/setup')
run('./CODE/ESTIMATION/run_calibration_based_on_sampling.m')
end
end