11 for c=1:length(csample)
12 newdir = fullfile(rbmatlabtemp, ['time_run_fixed', num2str(c)])
16 model.Mmax = ceil(csample(c)*model.MMax);
17 model.RB_stop_Nmax = ceil(csample(c)*model.RB_stop_Nmax);
18 Ms = [Ms, model.Mmax]; Ns = [Ns, model.RB_stop_Nmax];
19 save(outfile, 'model', 'model_data');
22 outfile = newton_steps(5);
24 crbtimes = [crbtimes, tmp.detailed_data.ei_info{1}.elapsed_time]
25 rbtimes = [rbtimes, tmp.detailed_data.RB_info.elapsed_time]
26 sizes = [sizes, [size(tmp.detailed_data.RB,2);...
27 size(tmp.detailed_data.QM{1},2)] ];
28 copyfile(outfile, fullfile(newdir,
'detailed'));
31 copyfile(outfile, fullfile(newdir,
'errs'));
33 maxerrs = [maxerrs, tmp.output{1}.errs(1)];
36 for c=1:length(csample)
37 newdir = fullfile(rbmatlabtemp, ['time_run_adapted', num2str(c)])
41 model.Mmax = ceil(csample(c)*model.MMax);
42 model.RB_stop_Nmax = ceil(csample(c)*model.RB_stop_Nmax);
43 Ms = [Ms, model.Mmax]; Ns = [Ns, model.RB_stop_Nmax];
45 model.RB_generation_mode = 'greedy_refined';
46 model.RB_numintervals = ones(size(model.RB_numintervals));
47 save(outfile, 'model', 'model_data');
50 outfile = newton_steps(5);
52 crbtimes = [crbtimes, tmp.detailed_data.ei_info{1}.elapsed_time]
53 rbtimes = [rbtimes, tmp.detailed_data.RB_info.elapsed_time]
54 sizes = [sizes, [size(tmp.detailed_data.RB,2);...
55 size(tmp.detailed_data.QM{1},2)] ];
56 copyfile(outfile, fullfile(newdir,
'detailed'));
59 copyfile(outfile, fullfile(newdir,
'errs'));
61 maxerrs = [maxerrs, tmp.output{1}.errs(1)];