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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
multirow/onerow/benchmark/generate_tables

24 lines
736 B

#!/bin/bash
for i in out/*yaml; do
IN=${i/.pre.yaml/}
IN=${IN/out\//}
grep -q mip_value $i && continue
grep $IN instances/opt.tab | awk '{ print "mip_value:\n "$2 }' >> $i
done
printf "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw origgap mirperf wperf mircontrib wcontrib wimprov wtime > 'tables/gap.csv'
for i in out/*.yaml; do
IN=${i/.yaml/}
IN=${IN/out\//}
printf "%s," $IN
scripts/gap.rb $i
done | sed -e 's/,$//g' >> 'tables/gap.csv'
printf "%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw mirt wedget avgm > 'tables/speed.csv'
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' >> 'tables/speed.csv'