forked from amessing/grstaps
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_experiments.sh
More file actions
executable file
·47 lines (39 loc) · 1.13 KB
/
run_experiments.sh
File metadata and controls
executable file
·47 lines (39 loc) · 1.13 KB
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
#!/bin/bash
if [ ! -d bin ]; then
mkdir bin
fi
cd bin
cmake ..
make -j8 icra_experiments
cd icra_2021_experiments
# 16 GB
ulimit -v $((16 * 1024 * 1024)) # kilobytes
# 10m
ulimit -t $((10 * 60)) # seconds
# Display?
ulimit -a
for alpha in "s" "0.00" "0.25" "0.50" "0.75" "1.00"; do
problem_nr=0
for problem_version in {0..9}; do
for iteration in {0..14}; do
problem_nr=$((problem_nr + 1))
echo "Problem ${problem_nr}"
map_nr=$(( (problem_nr + 1) % 5 ))
if [ "${map_nr}" == "3" ]; then
echo "Map 3; skipping"
continue
fi
if [ "${alpha}" == "s" ]; then
if [ ! -f "outputs/output_${problem_nr}_0.00_1.json" ]; then
echo "./icra_experiments -p ${problem_nr} -v ${problem_version} -s"
eval "./icra_experiments -p ${problem_nr} -v ${problem_version} -s"
fi
else
if [ ! -f "outputs/output_${problem_nr}_${alpha}_0.json" ]; then
echo "./icra_experiments -p ${problem_nr} -v ${problem_version} -a ${alpha}"
eval "./icra_experiments -p ${problem_nr} -v ${problem_version} -a ${alpha}"
fi
fi
done
done
done