source: trunk/Cbc/scripts/run.sh @ 1540

Last change on this file since 1540 was 1540, checked in by tkr, 9 years ago

Adding scripts for running becnhmark tests

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/usr/bin/env bash
2#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3#*                                                                           *
4#*            This file is part of the test engine for MIPLIB2010            *
5#*                                                                           *
6#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7# $Id: run.sh,v 1.1 2010/10/12 07:43:55 bzfwolte Exp $
8
9SOLVER=$1
10LPS=$2
11TSTNAME=$3
12TIMELIMIT=$4
13HARDMEMLIMIT=$5
14
15if test ! -e results
16then
17    mkdir results
18fi
19
20OUTFILE=results/check.$SOLVER.$LPS.$TSTNAME.out
21RESFILE=results/check.$SOLVER.$LPS.$TSTNAME.res
22SOLFILE=results/check.$SOLVER.$LPS.$TSTNAME.sol
23
24CHECKTOL=-4 # short for 1e-04
25MIPGAP=0.0
26
27uname -a > $OUTFILE
28date >> $OUTFILE
29
30HARDMEMLIMIT=`expr $HARDMEMLIMIT \* 1024`
31echo "hard mem limit: $HARDMEMLIMIT k" >> $OUTFILE
32
33for i in `cat $TSTNAME.test` 
34do
35    if test -f $i
36    then
37        echo @01 $i ===========     
38        echo -----------------------------
39        date
40        echo -----------------------------
41        TIMESTART=`date +"%s"`
42        echo @03 $TIMESTART
43        bash -c " ulimit -v $HARDMEMLIMIT k; ulimit -f 200000; ./run_$SOLVER.sh $SOLVER $LPS $i $TIMELIMIT $SOLFILE $MIPGAP"
44        TIMEEND=`date +"%s"`
45        echo @04 $TIMEEND
46        echo @05 $TIMELIMIT
47        if test -f $SOLFILE
48        then
49            echo ""
50            # bash -c " ./solchecker $i $SOLFILE $CHECKTOL" 
51            echo ""
52        fi
53        echo -----------------------------
54        date
55        echo -----------------------------
56        echo
57        echo =ready=
58    else
59        echo @02 FILE NOT FOUND: $i ===========
60    fi
61done 2>&1 | tee -a $OUTFILE
62
63date >> $OUTFILE
64
65if test -f $SOLFILE
66then
67    rm $SOLFILE
68fi
69
70awk -f parse.awk -f parse_$SOLVER.awk $OUTFILE | tee $RESFILE
Note: See TracBrowser for help on using the repository browser.