-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·42 lines (32 loc) · 1007 Bytes
/
run.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
#!/bin/sh
# stop on error
set -e
# path the MINLPLib2 GAMS model files
# (download: http://www.gamsworld.org/minlp/minlplib2/minlplib2.zip)
MINLPLIB=/home/stefan/work/gams/minlplib/data/gms
# path to GAMS executable (GAMS >= 24.5 !)
GAMS=/home/stefan/work/gams/gams/gams
TESTSET=nontrivial
SOLVERS="ANTIGONE BARON COUENNE LINDO SCIP"
TIMELIMIT=3600
GAPLIMIT=0.000001
MEMLIMIT=20000 # usually ignored
THREADS=1
# setup .test file for SCIP script
mkdir -p testset
rm -f testset/${TESTSET}.test
for t in `cat ${TESTSET}`
do
echo "${MINLPLIB}/${t}.gms" >> testset/${TESTSET}.test
done
for s in ${SOLVERS}
do
SETTINGS=default
if [ -e settings/${s}.gamsset ]; then
SETTINGS=${s}
fi
echo
echo "Running $s with $SETTINGS settings on testset ${TESTSET}"
./check_gamscluster.sh ${TESTSET} ${GAMS} ${s} ${SETTINGS} "" ${TIMELIMIT} 2100000000 ${MEMLIMIT} ${GAPLIMIT} ${THREADS} false no local dummy dummy /tmp 1 true 0
done
awk -f cmpres.awk results/check.${TESTSET}.*res | tee compare.txt