Ignore:
Timestamp:
Dec 19, 2010 11:42:58 PM (10 years ago)
Author:
tkr
Message:

Updates to scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/scripts/parse_cbc_sol.awk

    r1540 r1555  
    66#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    77BEGIN{
    8    printf("\nSolution: \n\n");
    9    infeasible = 0;
     8  infeasible = 0;
     9  nointsol = 0;
    1010}
    11 ($3 != "objective" && $3 != "gap" && $3 != "time"){
    12    if (!infeasible){
    13       printf ("%s %s \n", $2, $3);
    14    }
     11($3 != "objective" && $3 != "gap" && $3 != "time" && $2 != "infeasible"){
     12  if (!infeasible){
     13    printf ("%s %s \n", $2, $3);
     14  }
    1515}
    16 ($3 == "objective" && $1 != "Infeasible"){
    17       printf ("=obj= %s \n", $5);
     16($3 == "objective" && $1 != "Infeasible" && $2 != "infeasible"){
     17  printf ("=obj= %s \n", $5);
    1818}
    1919($3 == "gap"){
    20       printf ("=obj= %s \n", $8);
     20  printf ("=obj= %s \n", $8);
    2121}
    2222($3 == "time"){
    23       printf ("=obj= %s \n", $7);
    24 }   
    25 ($1 == "Infeasible"){
    26    printf ("=infeas= \n");
    27    infeasible = 1;
     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;
    2833}
    2934
Note: See TracChangeset for help on using the changeset viewer.