-
Notifications
You must be signed in to change notification settings - Fork 0
/
jmoo_properties.py
executable file
·187 lines (161 loc) · 5.3 KB
/
jmoo_properties.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
"""
##########################################################
### @Author Joe Krall ###############################
### @copyright see below ###############################
This file is part of JMOO,
Copyright Joe Krall, 2014.
JMOO is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
JMOO is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with JMOO. If not, see <http://www.gnu.org/licenses/>.
### ###############################
##########################################################
"""
"Brief notes"
"Property File. Defines default settings."
from jmoo_algorithms import *
from jmoo_problems import *
# from Problems.CPM.cpm import *
# from Problems.CPM.cpm_reduction import *
from Problems.NRP.nrp import *
# from Problems.MONRP.monrp import *
from Problems.POM3.POM3B import POM3B
from Problems.POM3.POM3A import POM3A
from Problems.POM3.POM3C import POM3C
from Problems.POM3.POM3D import POM3D
from Problems.Feature_Models.feature_model import FeatureTreeModel
from Problems.XOMO.XOMO_flight import XOMO_flight
from Problems.XOMO.XOMO_all import XOMO_all
from Problems.XOMO.XOMO_ground import XOMO_ground
from Problems.XOMO.XOMO_osp import XOMO_osp
from Problems.XOMO.XOMO_osp2 import XOMO_osp2
# JMOO Experimental Definitions
algorithms = [
# jmoo_GALE2(),
jmoo_GALE(),
jmoo_DE(),
# jmoo_JALE5(),
# jmoo_GALE6(),
# jmoo_MOEAD_TCH(),
# jmoo_NSGAIII(),
# jmoo_GALE_no_mutation(),
# jmoo_NSGAII(),
# jmoo_SPEA2(),
# jmoo_GALE4(),
# jmoo_DE(),
# jmoo_MOEAD_TCH(),
# jmoo_NSGAIII(),
# jmoo_STORM()
]
problems =[
# fonseca(3),
# zdt1(),
# zdt4(),
# zdt3(),
# golinski(), zdt6()
# srinivas()
# POM3B(),
# POM3A(),
#POM3C(),
# POM3D(),
# dtlz1(9, 5),
#dtlz2(14, 5),
#dtlz3(14, 5),
# dtlz4(14, 5),
# dtlz1(7, 3),
# dtlz2(12, 3),
# dtlz3(12, 3),
# dtlz4(12, 3),
dtlz4(7, 3),
dtlz4(7, 5),
# dtlz4(7, 8),
# dtlz1(12, 8),
# dtlz2(17, 8),
# dtlz3(17, 8),
# dtlz4(17, 8),
# dtlz1(14, 10),
# dtlz2(19, 10),
# dtlz3(19, 10),
# dtlz4(19, 10),
# dtlz1(19, 15),
# dtlz2(24, 15),
# dtlz3(24, 15),
# dtlz4(24, 15)
# XOMO_all(),
# XOMO_osp2(),
# XOMO_flight(),
# NRP(50, 5, 5, 20, 120)
# FeatureTreeModel("Web_Portal", valid_solutions=True),
# FeatureTreeModel("eshop", valid_solutions=True),
# FeatureTreeModel("cellphone", valid_solutions=True),
# FeatureTreeModel("EIS", valid_solutions=True),
# FeatureTreeModel("Web_Portal"),
# FeatureTreeModel("eshop"),
# FeatureTreeModel("cellphone"),
# FeatureTreeModel("EIS"),
# MONRP(50, 5, 5, 20, 120)
# cpm_apache(),cpm_X264(), cpm_SQL_4553(), cpm_SQL_100(), cpm_LLVM(), cpm_BDBJ(), cpm_BDBC()
# cpm_apache_training_reduction(treatment=None),
# cpm_X264(treatment=None),
# cpm_SQL(treatment=None),
# cpm_LLVM(treatment=None),
# cpm_BDBJ(treatment=None),
# cpm_BDBC(treatment=None)
]
build_new_pop = False # Whether or not to rebuild the initial population
Configurations = {
"Universal": {
"Repeats" : 3,
"Population_Size" : 100,
"No_of_Generations" : 20,
"hpc" : False, # use for hpc. ignoring it in the local machine
"repeat_id": -1 # use for hpc. ignoring it in the local machine
},
"NSGAIII": {
"SBX_Probability": 1,
"ETA_C_DEFAULT_" : 30,
"ETA_M_DEFAULT_" : 20
},
"GALE": {
"GAMMA" : 0.15, #Constrained Mutation Parameter
"EPSILON" : 1.00, #Continuous Domination Parameter
"LAMBDA" : 3, #Number of lives for bstop
"DELTA" : 3 # Accelerator that increases mutation size
},
"DE": {
"F" : 0.75, # extrapolate amount
"CF" : 0.3, # prob of cross over
},
"MOEAD" : {
"niche" : 20, # Neighbourhood size
"SBX_Probability": 1,
"ETA_C_DEFAULT_" : 20,
"ETA_M_DEFAULT_" : 20,
"Theta" : 5
},
"STORM": {
"STORM_EXPLOSION" : 5,
"STORM_POLES" : 20, # number of actual poles is 2 * ANYWHERE_POLES
"F" : 0.75, # extrapolate amount
"CF" : 0.3, # prob of cross over
"STORM_SPLIT": 6, # Break and split into pieces
"GAMMA" : 0.15,
}
}
# File Names
DATA_PREFIX = "Data/"
DEFECT_PREDICT_PREFIX = "defect_prediction/"
VERSION_SPACE_PREFIX = "version_space/"
"decision bin tables are a list of decisions and objective scores for a certain model"
DECISION_BIN_TABLE = "decision_bin_table"
"result scores are the per-generation list of IBD, IBS, numeval,scores and change percents for each objective - for a certain model"
RESULT_SCORES = "result_"
SUMMARY_RESULTS = "summary_"
RRS_TABLE = "RRS_TABLE_"
DATA_SUFFIX = ".datatable"