-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFigure3.m
34 lines (24 loc) · 975 Bytes
/
Figure3.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
%% measure time: start
tic();
%% init
run('create_environment')
ENV = get_environment();
create_figures = 1;
file = 'Figure3_costs_one_spare';
file_table = ['Table15_for_', file];
%% results from instances
instance = 'insights_c_costs_one_spare_5';
TP_targets = [0.80 0.90];
create_results_insights_c(instance, TP_targets, create_figures, ENV);
modify_latex_tables(ENV);
%% copy and rename
parts = {'buffers', 'spares'};
position = {'top', 'bottom'};
copyfile([ENV.OUTPUT_DIR_EXCEL, instance, '_allocation', '.xlsx'], [ENV.PAPER_DIR, file_table, '.xlsx']);
copyfile([ENV.OUTPUT_DIR_LATEX_MOD, instance, '_allocation', '.tex'], [ENV.PAPER_DIR, file_table, '.tex']);
for i = 1:length(parts)
copyfile([ENV.OUTPUT_DIR_FIGURES, instance, '_', parts{i}, '.pdf'], [ENV.PAPER_DIR, file, '_', position{i}, '.pdf']);
copyfile([ENV.OUTPUT_DIR_FIGURES, instance, '_', parts{i}, '.png'], [ENV.PAPER_DIR, file, '_', position{i}, '.png']);
end
%% measure time: end
toc();