forked from GiovaniGuizzo/HITO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_moeadcf.sh
executable file
·68 lines (62 loc) · 1.73 KB
/
run_moeadcf.sh
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
#!/bin/bash
problems="OO_MyBatis OA_AJHsqldb OA_AJHotDraw OO_BCEL OO_JHotDraw OA_HealthWatcher OO_JBoss"
functions="ChoiceFunction"
objectivesArray="2"
alpha=1.0
beta=0.00005
evaluations=60000
population=300
crossover=1
mutation=1
executions=30
paramNr=$1
Ts="30"
Ds="0.1 0.3 0.5 0.7 0.9 1.0"
delta=0.9
nrs="3 6 30"
alpha=1.0
Betas="0.10 0.05 0.01 0.005 0.001 0.00005"
tipo=4
w=150
c=5
#Selected
paramNr=""
Ts="30"
Ds="0.3"
delta=0.9
nrs="6"
alpha=1.0
Betas="0.10"
#fix
Ds="1.0"
rm -f runCF$paramNr.txt
for objectives in $objectivesArray
do
for function in $functions
do
for D in $Ds
do
for beta in $Betas
do
for T in $Ts
do
#NR=$T
for NR in $nrs
do
if [ $NR -le $T ]; then
path="experiment/MOEADCF_"$alpha"_"$beta"_"$T"_"$delta"_"$NR"_"$D"/"
mkdir $path
for problem in $problems
do
echo "java -Xms1024m -Xmx2048m -cp dist/HITO.jar hyperheuristics.main.CFMOEAD_FRRHyperheuristicMain $population $evaluations $crossover $mutation $alpha $beta TwoPointsCrossover,MultiMaskCrossover,PMXCrossover SwapMutation,SimpleInsertionMutation $problem $function $w $c $objectives false $executions $path $T $NR $D $tipo" >> runCF$paramNr.txt
done
fi
done
done
done
done
done
done
cat runCF$paramNr.txt | xargs -I CMD -P 16 bash -c CMD &
wait
rm -f runCF$paramNr.txt