-
Notifications
You must be signed in to change notification settings - Fork 2
/
runTests.sh
executable file
·26 lines (26 loc) · 1.35 KB
/
runTests.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
dataFolder="dat"
instanceFolder=${dataFolder}/Instances_H
resultsFolder=${dataFolder}/results_InstancesH
logFile=${resultsFolder}/results.csv
numThreads=8
mkdir ${resultsFolder}
for ex in $(ls ${instanceFolder}/*.json); do
instanceName=${ex/.json/}
instanceNumber=${ex//[!0-9]/}
echo "----------------------Running instance $ex----------------------"
#Skip full enumeration with the first argument
if [ ! $1 ]; then
#echo "--------Full Enumeration"
./EPEC -i ${ex//.json/} -t ${numThreads} -w 2 -l ${logFile} -s ${resultsFolder}/Solution_Full_${instanceNumber} --timelimit 1800 -a 0
./EPEC -i ${ex//.json/} -t ${numThreads} -w 2 -l ${logFile} -s ${resultsFolder}/Solution_${instanceNumber} --timelimit 1800 -a 1 --pure 1 --aggr 3 --add 1 --recover 1
./EPEC -i ${ex//.json/} -t ${numThreads} -w 2 -l ${logFile} -s ${resultsFolder}/Solution_${instanceNumber} --timelimit 1800 -a 2 --pure 1
fi
for aggressiveness in {1,3,5}; do
for addPolyMethod in {0,1,2}; do
#echo "--------Inner Approximation"
echo ""
./EPEC -i ${ex//.json/} -t ${numThreads} -w 2 -l ${logFile} -s ${resultsFolder}/Solution_Inner_${instanceNumber}_aggr${aggressiveness}_method${addPolyMethod} --timelimit 1800 -a 1 --aggr $aggressiveness --add $addPolyMethod
done
done
printf "\n\n"
done