# Copyright (C) 2001 Dale Schuurmans, Finnegan Southey # This work is licensed under the Gnu General Public License (see gpl.txt). #Runs the specified COP solver on problems in the specified directory #RES=res #REPS=1 #SOLVER=$1 #PROBDIR=$2 #TRIES=1 #FLIPS=10000 #PAR1=$3 #PAR2=$4 #PAR3=$5 #PAR4=$6 #PAR5=$7 #find $PROBDIR -name \*.cop -exec $SOLVER $REPS {} $PAR1 $PAR2 $TRIES $FLIPS $PAR3 $PAR4 $PAR5 \; > /tmp/_cares$$ rm -f /tmp/_cares$$ for PROBFILE in $PROBLIST do $SOLVER $REPS $PROBFILE $PAR1 $PAR2 $TRIES $FLIPS $PAR3 $PAR4 $PAR5 >> /tmp/_cares$$ done head -n 1 /tmp/_cares$$ sed "/^#/d" /tmp/_cares$$ > /tmp/_caresB$$ cat /tmp/_caresB$$ echo head -n 1 /tmp/_cares$$ cut -f 1-12 /tmp/_caresB$$ | avgmulticols 12 rm -f /tmp/_cares$$ rm -f /tmp/_caresB$$