-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprime_single.sh
More file actions
executable file
·35 lines (31 loc) · 997 Bytes
/
prime_single.sh
File metadata and controls
executable file
·35 lines (31 loc) · 997 Bytes
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
repoFile=$1
if [ $# -ne 1 ]
then
echo "Usage: prime_single.sh <repofile>"
exit 1
fi
oxygen_min_node_weights=(15 20 25 30 35)
chlorine_min_node_weights=(15 20 25 30 35)
chlorine_min_match_coefficient=(0.75 0.8 0.85 0.9 0.95)
i=0
while [ $i -lt 5 ]
do
j=0
while [ $j -lt 5 ]
do
# Oxygen parameters
export OXYGEN_MIN_NODE_WEIGHT=${oxygen_min_node_weights[i]}
# Chlorine parameters
export CHLORINE_MIN_NODE_WEIGHT=${chlorine_min_node_weights[i]}
export CHLORINE_MIN_MATCH_COEFFICIENT=${chlorine_min_match_coefficient[j]}
testNum=$((i * 5 + j + 1))
fileName=output/"$testNum".test
echo "Single - Test $testNum" | tee -a $fileName
echo "Parameters,,OXYGEN_MIN_NODE_WEIGHT,CHLORINE_MIN_NODE_WEIGHT,CHLORINE_MIN_MATCH_COEFFICIENT" | tee -a $fileName
echo ",,$OXYGEN_MIN_NODE_WEIGHT,$CHLORINE_MIN_NODE_WEIGHT,$CHLORINE_MIN_MATCH_COEFFICIENT" | tee -a $fileName
echo ""
./run.sh single $repoFile
((j=j+1))
done
((i=i+1))
done