-
Notifications
You must be signed in to change notification settings - Fork 0
/
doStatisticsMasc.sh
executable file
·60 lines (49 loc) · 1.55 KB
/
doStatisticsMasc.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
#!/bin/bash
# Check for proper number of command line args.
EXPECTED_ARGS=1
E_BADARGS=65
if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: ./`basename $0` numberOfTriesToMake"
exit $E_BADARGS
fi
echo "removing all the .hi and .o files"
rm *.hi
rm *.o
echo "removed"
anzahlDurchlaufe="$1"
ghc --make -O2 -outputdir=ghc_outputdir GenMasc.hs
echo "compiled GenMasc.hs"
echo "remove old Logs and Plots"
rm solvingLogs/*
rm solvingPlots/*
echo "removed them"
echo "run GenMasc"
seq $anzahlDurchlaufe | parallel --gnu ./runOnceAndPlotMasc.sh
echo "evolution finished"
./plotMultipleOutputs.sh
echo "plotted Multiplot"
ghc --make -O2 -outputdir=ghc_outputdir convertforEliteplot.hs
for i in `seq 1 $anzahlDurchlaufe`;
do
nameStock="output"$i"Elite"
touch solvingLogs/$nameStock.txt
./convertforEliteplot "$i"
gnuplot -e "dataName ='solvingLogs/$nameStock.txt'; pdfName='solvingPlots/$nameStock.pdf'" plotEliteOutput.plt
echo "Eliteplot $i plotted"
done
rm convertforEliteplot
# moving things to ghc_outputdir seems to break things
ghc --make -O2 convertforMonogramAnalysis.hs
echo "anzahlDurchlaufe ist anzahlDurchlaufe"
for i in `seq 1 $anzahlDurchlaufe`;
do
nameStock="output"$i"MonogramAnalysis"
touch solvingLogs/$nameStock.txt
./convertforMonogramAnalysis "$i"
# runhaskell convertforMonogramAnalysis.hs "$i"
gnuplot -e "dataName ='solvingLogs/$nameStock.txt'; pdfName='solvingPlots/$nameStock.pdf'" plotMonogramAnalysis.plt
echo "MonogramAnalysis $i plotted"
done
rm convertforMonogramAnalysis convertforMonogramAnalysis.hi convertforMonogramAnalysis.o
rm GenMasc