Ignore:
Timestamp:
Apr 9, 2013 2:06:04 PM (7 years ago)
Author:
stefan
Message:

fixup examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/lotsize.cpp

    r1574 r1898  
    44// This code is licensed under the terms of the Eclipse Public License (EPL).
    55
    6 #if defined(_MSC_VER)
    7 // Turn off compiler warning about long names
    8 #  pragma warning(disable:4786)
    9 #endif
    10 
    116#include <cassert>
    127#include <iomanip>
    138
    14 
     9#include "CoinPragma.hpp"
    1510// For Branch and bound
    1611#include "CbcModel.hpp"
     
    5045  if (argc>=2) mpsFileName = argv[1];
    5146  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
    52   assert(numMpsReadErrors==0);
     47  if( numMpsReadErrors != 0 )
     48  {
     49     printf("%d errors reading MPS file\n", numMpsReadErrors);
     50     return numMpsReadErrors;
     51  }
    5352 
    5453  int iColumn;
Note: See TracChangeset for help on using the changeset viewer.