1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/awk -f
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#* *
#* This file is part of the test engine for MIPLIB2010 *
#* *
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/^Stopped/ {
if( NF > 7 )
exit;
printf ("=obj= %s \n", $7);
next;
}
/^Optimal/ {
printf ("=obj= %s \n", $5);
next;
}
/^Infeasible/ {
printf ("=infeas= \n");
exit;
}
/^Integer/ {
if( $2 == "infeasible")
printf ("=infeas= \n");
exit;
}
//{
printf ("%s %s \n", $2, $3);
}
|