Skip to content

Commit 155455e

Browse files
committed
Add previously used script test-bbobexp-1d.sh
1 parent bfa6c8b commit 155455e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test-bbobexp-1d.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
# Run test.py on a set of functions in 1D, collecting the BBOB fev data
3+
# (and final averaged results).
4+
# Usage: ./test-bbobexp-1d.sh ALIAS TEST_PARAM...
5+
# Example: ./test-bbobexp-1d.sh ndstep ndstep
6+
# Example: ./test-bbobexp-1d.sh ndsqistept500 -t 500 ndsqistep
7+
8+
alias="$1"
9+
shift
10+
if [ -z "$alias" ]; then
11+
echo "Usage: ./test-bbobexp-1d.sh ALIAS TEST_PARAM..." >&2
12+
exit 1
13+
fi
14+
15+
for i in `seq 1 24`; do
16+
mkdir -p 1d-data/B$i
17+
echo B$i
18+
./test.py -d 1 -f B$i -i 10000 "$@" | tee 1d-data/B$i/"$alias"
19+
done
20+
21+
grep converg 1d-data/B*/"$alias"

0 commit comments

Comments
 (0)