You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
#!/bin/bash
|
|
for i in out/*yaml; do
|
|
IN=${i/.yaml/}
|
|
IN=${IN/out\//}
|
|
grep -q mip_value $i && continue
|
|
grep $IN instances/opt.tab | awk '{ print "mip_value:\n "$2 }' >> $i
|
|
done
|
|
|
|
echo " TABLE 1 "
|
|
echo "--------------------------------------------------------------------------------"
|
|
printf "%s,%s,%s,%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw origgap mirperf wperf mircontrib wcontrib wimprov
|
|
for i in out/*.yaml; do
|
|
IN=${i/.yaml/}
|
|
IN=${IN/out\//}
|
|
printf "%s," $IN
|
|
scripts/gap.rb $i
|
|
done | sort -t',' -nrsk 8 | sed -e 's/,$//g'
|
|
|
|
echo
|
|
echo
|
|
echo " TABLE 2 "
|
|
echo "--------------------------------------------------------------------------------"
|
|
printf "%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw mirt wedget avgm
|
|
for i in out/*.yaml; do
|
|
IN=${i/.yaml/}
|
|
IN=${IN/out\//}
|
|
printf "%s," $IN
|
|
scripts/speed.rb $i
|
|
done | sort | sed -e 's/,$//g'
|