Ignore:
Timestamp:
Mar 21, 2011 11:48:47 PM (10 years ago)
Author:
tkr
Message:

Merging changesets 1539, 1540, 1555, 1556, 1557, and 1558 from trunk

Location:
stable/2.6
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • stable/2.6

  • stable/2.6/Cbc

  • stable/2.6/Cbc/scripts/parse_cbc_sol.awk

    r1540 r1615  
    55#*                                                                           *
    66#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    7 BEGIN{
    8    printf("\nSolution: \n\n");
    9    infeasible = 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"){
    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"){
    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       printf ("=obj= %s \n", $7);
    24 }   
    25 ($1 == "Infeasible"){
    26    printf ("=infeas= \n");
    27    infeasible = 1;
     26//{
     27   printf ("%s %s \n", $2, $3);
    2828}
    2929
     30
Note: See TracChangeset for help on using the changeset viewer.