-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbcmdp_run.m
50 lines (46 loc) · 1.13 KB
/
bcmdp_run.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
%bcmdp_run.m
%run random crap for long stuff--don't include any serious logic in here,
%this is for dumb stuff, if you're going to have real logic do proper
%programming
histories1 = cell(num_runs,1);
bc.beta = 0.1;
%run the program
total_time = 0;
for run = 1:num_runs
bcmdp_init_history;
t0 = tic;
bcmdp_main;
tf = toc(t0);
total_time = total_time + tf;
disp(['Run ' int2str(run) ' Complete! It took ' int2str(tf) ' seconds!']);
histories1{run} = history;
end
w1 = w;
histories2 = cell(num_runs,1);
bc.beta = 0.05;
%run the program
total_time = 0;
for run = 1:num_runs
bcmdp_init_history;
t0 = tic;
bcmdp_main;
tf = toc(t0);
total_time = total_time + tf;
disp(['Run ' int2str(run) ' Complete! It took ' int2str(tf) ' seconds!']);
histories2{run} = history;
end
w2 = w;
histories3 = cell(num_runs,1);
bc.beta = 0.02;
%run the program
total_time = 0;
for run = 1:num_runs
bcmdp_init_history;
t0 = tic;
bcmdp_main;
tf = toc(t0);
total_time = total_time + tf;
disp(['Run ' int2str(run) ' Complete! It took ' int2str(tf) ' seconds!']);
histories3{run} = history;
end
w3 = w;