PARAMETERS.py 2.51 KB
Newer Older
1
import numpy as np
Marc Serramia's avatar
Marc Serramia committed
2

3
#--------------PROBLEM PARAMETERS-----------------
Marc Serramia's avatar
Marc Serramia committed
4 5

BUILD = True
6 7
SOLVE = True
MAINTAIN_PLOT = True
8
SOLVE_TIME_LIMIT = 3600
9
ROUNDS = 1
10 11 12 13 14

#---PROBLEM GENERATION SETTINGS---

#Method1: Height-Widt
"""
Marc Serramia's avatar
Marc Serramia committed
15 16
HEIGHTS = [0,1,2,3]
WIDTHS = [0,1,2,3]
17
INCOMPATIBILITY_PROB = [0.05,0.2,0.4,0.6,0.8,0.95]
Marc Serramia's avatar
Marc Serramia committed
18 19 20
PROB_TREE = 1
ROOTS = None
GENERALISATION_PROB = 0.2
21 22 23 24 25
RELATION_DENSITY = None
"""

#METHOD2: Density-Incomp-perc
#"""
Marc Serramia's avatar
Marc Serramia committed
26 27
RELATION_DENSITY = [0.5]
INCOMPATIBILITY_PERC = [0.5]
28 29 30
#"""

#---VALUES SETTINGS---
31 32
PROB_INDIF_VALUE = np.arange(0.01, 1.01, 0.01)
PROB_VALUE_NORMS = np.arange(0.01, 1.01, 0.01)
33 34 35 36

#---SPECIFIC EXPERIMENT SETTINGS---

#FIXED Settings
Marc Serramia's avatar
Marc Serramia committed
37
"""
38
EXPERIMENT_TYPE = "SIMPLE"
39 40
NUM_NORMS = 1000
NUM_VALUES = 100
41
PERC_VALUES = None #Overwrites NUM_VALUES
Marc Serramia's avatar
Marc Serramia committed
42
"""
43 44

#RANGE_RATIO Settings
45
"""
46
EXPERIMENT_TYPE = "RANGE_RATIO"
47 48
NUM_NORMS = 500
NUM_VALUES = [50]
49
PERC_VALUES = None #Overwrites NUM_VALUES
50
"""
51 52

#RANGE_NORMS Settings
53
"""
54
EXPERIMENT_TYPE = "RANGE_NORMS"
55
NUM_NORMS = range(100,900,100)
56 57
NUM_VALUES = None
PERC_VALUES = 0.1 #Overwrites NUM_VALUES
58
"""
59 60

#RANGE_VALUES Settings
Marc Serramia's avatar
Marc Serramia committed
61
#"""
62
EXPERIMENT_TYPE = "RANGE_VALUES"
Marc Serramia's avatar
Marc Serramia committed
63
NUM_NORMS = 500
64
NUM_VALUES = None
65
PERC_VALUES = [0.1] #Overwrites NUM_VALUES
Marc Serramia's avatar
Marc Serramia committed
66
#"""
Marc Serramia's avatar
Marc Serramia committed
67 68 69

#-----------------PLOTTING PARAMETERS-------------------

70 71
SAVE = True
SHOW = True
72 73

#RATIO SETTINGS
74
"""
75
PLOT_TYPE = "RATIO"
76 77 78 79 80 81 82
PLOT_NORMS = 500
RATIO_TYPE = "D"
RATIO_ORDER = "I"
CUT = False
QUARTILE_CUT = 0.05
SHOW_X_RANGE = [0, 200]
SHOW_Y_RANGE = [0, 40]
83
POINT_COLOR = "blue"
84
POINT_SIZE = 10
85
"""
86

87 88 89 90 91
"""
PLOT_TYPE = "RATIO_HEATMAP"
PLOT_NORMS = 500
"""

92 93 94
#SCALABILITY SETTINGS:
"""
PLOT_TYPE = "SCALABILITY"
Marc Serramia's avatar
Marc Serramia committed
95 96
CUT = False
QUARTILE_CUT = 0
Marc Serramia's avatar
Marc Serramia committed
97 98
SHOW_X_RANGE = [0, 1e55]
SHOW_Y_RANGE = [0, 600]
Marc Serramia's avatar
Marc Serramia committed
99
POINT_COLOR = "blue"
100 101
POINT_SIZE = 10
"""
102

103
#SCALABILITY_PROB SETTINGS:
Marc Serramia's avatar
Marc Serramia committed
104
"""
105
PLOT_TYPE = "SCALABILITY_PROB"
106
COLORS = ['black']#['navy', 'blue', 'cyan']
107
SD = False
108 109
PLOT_INCOMPATIBILITY_PROB = [0.01]#[0.5, 1, 0]#INCOMPATIBILITY_PROB
LABELS = ["Hard problem"]#["Medium problem", "Easy problem", "No constraints"]
Marc Serramia's avatar
Marc Serramia committed
110
"""
111 112

#VALUES SETTINGS:
Marc Serramia's avatar
Marc Serramia committed
113
"""
114
PLOT_TYPE = "VALUES"
115
TO_PLOT = "SOLVE"
Marc Serramia's avatar
Marc Serramia committed
116
PLOT_NORMS = 500
117
DRAW_LINE = True
Marc Serramia's avatar
Marc Serramia committed
118
SD = False
119
POINT_SIZE = 10
Marc Serramia's avatar
Marc Serramia committed
120 121 122 123 124 125 126 127
"""

#VALUES HEATMAP SETTINGS:
#"""
PLOT_TYPE = "VALUES_HEATMAP"
TO_PLOT = "BUILD"
PLOT_NORMS = 500
POINT_SIZE = 10
Marc Serramia's avatar
Marc Serramia committed
128
#"""
Marc Serramia's avatar
Marc Serramia committed
129

130
#-----------------PROBLEM VISUALISER-----------------------
Marc Serramia's avatar
Marc Serramia committed
131

132
"""
133
VISUALISER_NORMS = 10
134
VISUALISER_DENSITY = 0.2
135
VISUALISER_INCOMP_PERC = 0.5
136 137 138 139 140 141 142
VISUALISER_HEIGHT = None
VISUALISER_WIDTH = None
VISUALISER_PROB_INC = None
VISUALISER_ROUND = 0
VISUALISER_GENERATE = True
VISUALISER_PROBLEM_TYPE = "SIMPLE"
VISUALISER_NUM_VALUES = 5
143
"""