File: parse_cbc_sol.awk

package info (click to toggle)
coinor-cbc 2.9.9%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,848 kB
  • ctags: 5,787
  • sloc: cpp: 104,337; sh: 8,921; xml: 2,950; makefile: 520; ansic: 491; awk: 197
file content (30 lines) | stat: -rwxr-xr-x 726 bytes parent folder | download | duplicates (7)
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);
}