-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_nsgaii.sh
53 lines (39 loc) · 1.3 KB
/
run_nsgaii.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
#!/bin/bash
problems="OO_MyBatis OA_AJHsqldb OA_AJHotDraw OO_BCEL OO_JHotDraw OA_HealthWatcher OO_JBoss"
functions="ChoiceFunction MultiArmedBandit Random"
objectivesArray="2 4"
alpha=1.0
beta=0.00005
w=150
c=5.0
evaluations=60000
population=300
crossover=1
mutation=1
executions=30
path="experiment/NSGA-II/"
rm -f run.txt
for objectives in $objectivesArray
do
#echo "java -cp dist/MECBA-Hyp.jar jmetal.experiments.Combined_NSGAII_"$objectives"obj" >> run.txt
for function in $functions
do
for problem in $problems
do
echo "java -cp dist/MECBA-Hyp.jar hyperheuristics.main.NSGAIIHyperheuristicMain $population $evaluations $crossover $mutation $alpha $beta TwoPointsCrossover,MultiMaskCrossover,PMXCrossover SwapMutation,SimpleInsertionMutation $problem $function $w $c $objectives false $executions $path" >> run.txt
done
done
done
cat run.txt | xargs -I CMD -P 3 bash -c CMD &
wait
rm -f run.txt
#for objectives in $objectivesArray
#do
# echo "java -cp dist/MECBA-Hyp.jar hyperheuristics.main.CompareHypervolumes $executions $path $path $path $objectives $problems" >> run.txt
#done
#
#cat run.txt | xargs -I CMD -P 3 bash -c CMD &
#wait
#
#rm -f run.txt
#zenity --info --text="Execuções finalizadas!"