-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExecuter.sh
77 lines (54 loc) · 1.66 KB
/
Executer.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
69
70
71
72
73
74
75
76
#!/bin/sh
# Benchmarks
#Name nº instances
#UF 10
#ZDT 5
#WFG 9
#DTLZ 6
#GLT 6
#LZ09 9
# Indicators
#HV max
#ep min
#IGD min
# Agorithms
#MOEAD
#MOEADDRA
#NSGAII
#SPEA2
#IBEA
#================================================================
benchmark="WFG"
testName="_example-test_"
algorithm1="MOEADDRA"
tag1="MOEADDRA"
algorithm2="NSGAII"
tag2="NSGAII"
OutputFiles="experiment/OutputFiles/output_"$benchmark"_"
DiretoryData="Result"$testName$benchmark"/"
#================================================================
echo "=============================="
echo "Executing JMetal "
echo "Benchmark : "$benchmark
echo "Test Name : "$testName
echo "Data Files : "$DirectoryData
echo "Algorithm 1 : "$tag1
echo "Algorithm 2 : "$tag2
echo "Algorithm 3 : "$tag3
echo "=============================="
#Execution Line - Execute the algorithm and save the results in algorithm tag
#java -jar JMetal.jar --statistic /$benchmark --algorithm $algorithm1 --tag $tag1 > $OutputFiles$tag1.out
#java -jar JMetal.jar --statistic /$benchmark --algorithm $algorithm2 --tag $tag2 > $OutputFiles$tag2.out
#Comparative Line - Make the comparative tables and organize the folders
sh QualityIndicators.sh $DirectoryData $benchmark --algorithm $algorithm1 --tag $tag1 --algorithm $algorithm2 --tag2
#Execute sound to alert the end of the test
aplay Additional/sound.wav
echo "
_____ _
| __ \ | |
| | | | ___ _ __ ___ | |
| | | | / _ \ | '_ \ / _ \ | |
| |__| | | (_) | | | | | | __/ |_|
|_____/ \___/ |_| |_| \___| (_)"
#if you want to suspend after the execution
#systemctl suspend