-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.sh
50 lines (43 loc) · 800 Bytes
/
settings.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ALGORITHMS=( NSGAII NSGAIII Borg MOEAD RVEA )
NSAMPLES=20
NSEEDS=5
PROBLEMS=( lake )
USEPBS=true
SAMPLES=( $(seq 1 ${NSAMPLES}) )
SEEDS=( $(seq 1 ${NSEEDS}) )
JAVA_ARGS="-cp \"$(echo lib/*.jar | tr ' ' ':'):.\" -Xmx512m"
WALLTIME=256:00:00
while [[ $# > 0 ]]
do
key="$1"
case $key in
-s|--seed)
if [[ $2 =~ .*\-.* ]]
then
SEEDS=$(eval echo {${2//-/..}})
else
SEEDS=( $2 )
fi
shift
;;
-a|--algorithm)
ALGORITHMS=( $2 )
shift
;;
-b|--problem)
PROBLEMS=( $2 )
shift
;;
-t|--test)
TEST=echo
;;
*)
echo "Unknown option $1"
;;
esac
shift
done
declare -A EPSILON_MAP
EPSILON_MAP["lake"]=0.01,0.01,0.0001,0.0001
declare -A MAXNFE_MAP
MAXNFE_MAP["lake"]=100000