-
Notifications
You must be signed in to change notification settings - Fork 3
/
jmoo_properties.py
executable file
·132 lines (105 loc) · 3.69 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
"""
##########################################################
### @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 jmoo_NSGAII, jmoo_SWAY5, jmoo_SPEA2, jmoo_MOEAD_PBI, jmoo_MOEAD_TCH
from jmoo_problems import *
from Problems.POM3.POM3B import *
from Problems.POM3.POM3A import *
from Problems.POM3.POM3C import *
from Problems.POM3.POM3D import *
from Problems.XOMO.XOMO_flight import *
from Problems.XOMO.XOMO_all import *
from Problems.XOMO.XOMO_ground import *
from Problems.XOMO.XOMO_osp import *
from Problems.XOMO.XOMO_osp2 import *
from Problems.MONRP.monrp import MONRP
# JMOO Experimental Definitions
algorithms = [
# jmoo_MOEAD_PBI()
jmoo_MOEAD_TCH(),
jmoo_NSGAII(),
jmoo_SPEA2(),
# jmoo_SWAY5()
]
problems =[
POM3A(),
POM3B(),
POM3C(),
POM3D(),
XOMO_flight(),
XOMO_all(),
XOMO_ground(),
XOMO_osp(),
XOMO_osp2(),
# MONRP(50, 4, 5, 0, 90),
# MONRP(50, 4, 5, 0, 110),
# MONRP(50, 4, 5, 4, 90),
# MONRP(50, 4, 5, 4, 110),
]
build_new_pop = False # Whether or not to rebuild the initial population
Configurations = {
"Universal": {
"Repeats" : 5,
"Population_Size" : 100,
"No_of_Generations" : 20
},
"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"