./0 if [ "$1" != "withsa" ]; then echo "SimpleSA is turned off by default as it takes the longest to compute." echo "If you want to include it, rerun this example as ./2 withsa" echo " " fi echo "All algorithms using model 4.2" echo " " cd ../scripts echo "Running astar 1000 times" ./comp astar > astar.csv #echo "Running MaxFunWalk 1000 times" #./comp maxfunwalk > maxfunwalk.csv echo "Running KEYS 1000 times" ./comp keys > keys.csv #gawk -f processkeysstuff.awk -v F=keys.csv > keysp.csv #mv keysp.csv keys.csv if [ "$1" == "withsa" ]; then echo "Running SimpleSA 1000 times" ./comp sa > sa.csv #gawk -f processkeysstuff.awk -v F=sa.csv > sap.csv #mv sap.csv sa.csv fi echo "Preparing plots" ./plot2DZoomPaper mv *.pdf ../results/ mv *.csv ../results/ echo "Opening plot for astar" pdfopen --file results/astar-2D.pdf echo "Opening plot for MaxFunWalk" pdfopen --file results/maxfunwalk-2D.pdf echo "Opening plot for KEYS" pdfopen --file results/keys-2D.pdf if [ "$1" == "withsa" ]; then echo "Opening plot for SimpleSA" evince results/sa-2D.pdf & rm simplesa fi echo "All results in directory 'results'" ./cleanup