source: trunk/Cbc/scripts/run_cbc.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.0 KB
Line 
1#!/usr/bin/env bash
2#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3#*                                                                           *
4#*            This file is part of the test engine for MIPLIB2010            *
5#*                                                                           *
6#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7
8SOLVER=$1
9LPS=$2
10NAME=$3
11TIMELIMIT=$4
12SOLFILE=$5
13MIPGAP=$6
14
15$SOLVER -import $NAME -sec $TIMELIMIT -ratio $MIPGAP -solve -solution $SOLFILE
16
17if test -f $SOLFILE
18then
19    # translate SCIP solution format into format for solution checker.
20    #  The SOLFILE format is a very simple format where in each line
21    #  we have a <variable, value> pair, separated by spaces.
22    #  A variable name of =obj= is used to store the objective value
23    #  of the solution, as computed by the solver. A variable name of
24    #  =infeas= can be used to indicate that an instance is infeasible.
25    awk -f parse_cbc_sol.awk $SOLFILE
26fi
27
28
Note: See TracBrowser for help on using the repository browser.