source: stable/2.6/Cbc/scripts/parse_cbc_sol.awk @ 1615

Last change on this file since 1615 was 1615, checked in by tkr, 8 years ago

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

  • Property svn:executable set to *
File size: 726 bytes
Line 
1#!/usr/bin/awk -f
2#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3#*                                                                           *
4#*            This file is part of the test engine for MIPLIB2010            *
5#*                                                                           *
6#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7/^Stopped/ {
8   if( NF > 7 )
9      exit;
10   printf ("=obj= %s \n", $7);
11   next;
12}
13/^Optimal/ {
14   printf ("=obj= %s \n", $5);
15   next;
16}
17/^Infeasible/ {
18   printf ("=infeas= \n");
19   exit;
20}
21/^Integer/ {
22   if( $2 == "infeasible")
23      printf ("=infeas= \n");
24   exit;
25}
26//{
27   printf ("%s %s \n", $2, $3);
28}
29
30
Note: See TracBrowser for help on using the repository browser.