source: trunk/Cbc/scripts/parse_cbc_sol.awk @ 1555

Last change on this file since 1555 was 1555, checked in by tkr, 10 years ago

Updates to scripts

  • Property svn:executable set to *
File size: 959 bytes
Line 
1#!/usr/bin/awk -f
2#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3#*                                                                           *
4#*            This file is part of the test engine for MIPLIB2010            *
5#*                                                                           *
6#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7BEGIN{
8  infeasible = 0;
9  nointsol = 0;
10}
11($3 != "objective" && $3 != "gap" && $3 != "time" && $2 != "infeasible"){
12  if (!infeasible){
13    printf ("%s %s \n", $2, $3);
14  }
15}
16($3 == "objective" && $1 != "Infeasible" && $2 != "infeasible"){
17  printf ("=obj= %s \n", $5);
18}
19($3 == "gap"){
20  printf ("=obj= %s \n", $8);
21}
22($3 == "time"){
23  if ($5 == "integer"){
24    printf ("=nointsol= \n");
25    nointsol = 1;
26  }else{
27    printf ("=obj= %s \n", $7);
28  }
29}
30($1 == "Infeasible" || $2 == "infeasible"){
31  printf ("=infeas= \n");
32  infeasible = 1;
33}
34
Note: See TracBrowser for help on using the repository browser.