Changeset 1558 for trunk/Cbc/scripts


Ignore:
Timestamp:
Dec 20, 2010 9:08:28 PM (9 years ago)
Author:
tkr
Message:

Changing output a bit more

File:
1 edited

Legend:

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

    r1555 r1558  
    55#*                                                                           *
    66#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    7 BEGIN{
    8   infeasible = 0;
    9   nointsol = 0;
     7/^Stopped/ {
     8   if( NF > 7 )
     9      exit;
     10   printf ("=obj= %s \n", $7);
     11   next;
    1012}
    11 ($3 != "objective" && $3 != "gap" && $3 != "time" && $2 != "infeasible"){
    12   if (!infeasible){
    13     printf ("%s %s \n", $2, $3);
    14   }
     13/^Optimal/ {
     14   printf ("=obj= %s \n", $5);
     15   next;
    1516}
    16 ($3 == "objective" && $1 != "Infeasible" && $2 != "infeasible"){
    17   printf ("=obj= %s \n", $5);
     17/^Infeasible/ {
     18   printf ("=infeas= \n");
     19   exit;
    1820}
    19 ($3 == "gap"){
    20   printf ("=obj= %s \n", $8);
     21/^Integer/ {
     22   if( $2 == "infeasible")
     23      printf ("=infeas= \n");
     24   exit;
    2125}
    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;
     26//{
     27   printf ("%s %s \n", $2, $3);
    3328}
    3429
     30
Note: See TracChangeset for help on using the changeset viewer.