-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
110 lines (76 loc) · 3.68 KB
/
main.py
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
from lib.instance_generation.chen_grossmann_miller_generator import generate_chen_grossmann_miller_instances
from lib.instance_generation.grossmann_random_generator import generate_grossmann_random_instances
from lib.instance_generation.large_scale_instance_generator import generate_large_scale_instances
from lib.instance_generation.min_utility_cost_solver import solve_min_utility_cost
from lib.exact_methods.exact_solver import solve_exactly
from lib.heuristic_methods.heuristic_solver import solve_heuristically
from lib.io_modules.bigM_comparator import bigM_compare
from lib.io_modules.bigM_comparator import write_bigM_comparison_spreadsheet
from lib.io_modules.results_visualization import generate_problem_sizes_table
from lib.io_modules.results_visualization import generate_exact_methods_table
from lib.io_modules.results_visualization import generate_heuristic_methods_table
from lib.io_modules.results_visualization import generate_comparison_table
from lib.io_modules.results_visualization import generate_upper_bounds_box_plot
from lib.io_modules.results_visualization import generate_elapsed_times_box_plot
from lib.io_modules.results_visualization import generate_line_chart
from lib.io_modules.results_visualization import generate_bigM_comparison_table
from lib.io_modules.results_visualization import generate_solutions_excel
from lib.io_modules.results_visualization import generate_transportation_models_comparison_table
from lib.io_modules.results_visualization import generate_large_scale_solutions_table
# INSTANCE GENERATION
#print('--Generation of chen_grossmann_miller instances')
#generate_chen_grossmann_miller_instances()
#print('--Generation of grossmann_random instances')
#generate_grossmann_random_instances()
#print('--Generation of large scale instances')
#generate_large_scale_instances()
#print('--Minimum utility cost solving')
#solve_min_utility_cost()
# EXACT METHODS
#print('--Minimum number of matches solving via exact methods')
#solve_exactly()
# HEURISTIC METHODS
#print('--Minimum number of matches solving via heuristic methods')
#solve_heuristically()
# RESULTS PRINTING
#print('--Printing mip results')
#print_mip_results()
#print('--Printing heuristic results')
#print_heuristic_results()
# BIG-M COMPARISONS
#print('--BigM comparisons')
#bigM_compare()
#write_bigM_comparison_spreadsheet()
# PLOTTING
#print('--Generating box-and-whisker plots')
#generate_upper_bounds_box_plot()
#generate_elapsed_times_box_plot()
#print('--Generating line chart')
#generate_line_chart()
# RESULTS TABLE GENERATION (CACE PAPER)
#print('--Generating problem sizes table')
#generate_problem_sizes_table()
#print('--Generating exact methods table')
#generate_exact_methods_table()
#print('--Generating heuristic methods tables')
#generate_heuristic_methods_table()
#print('--Generating comparison table')
#generate_comparison_table()
#print('--Generating bigM comparison table')
#generate_bigM_comparison_table()
#print('--Generation of transportation models comparison table')
#generate_transportation_models_comparison_table()
print('--Generation of an excel file with all solutions')
generate_solutions_excel()
#print('--Generation of large-scale solutions table')
#generate_large_scale_solutions_table()
#####THE CORRESPONDING FOLDERS NEED TO BE CREATED
# RESULTS TABLE GENERATION (RA SYMPOSIUM PRESENTATION)
#print('--Generating all heuristic results tables')
#generate_all_exact_results_tables()
#print('--Generating comparison table: relaxation rounding')
#generate_relaxation_rounding_comparison_table()
#print('--Generating comparison table: water filling')
#generate_water_filling_comparison_table()
#print('--Generating all heuristic results tables')
#generate_all_heuristic_results_tables()