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/longthin.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
    149
     10#include "CoinPragma.hpp"
    1511// For Branch and bound
    1612#include "OsiSolverInterface.hpp"
     
    2824#include "CglProbing.hpp"
    2925
    30 #include  "CoinTime.hpp"
     26#include "CoinTime.hpp"
    3127
    3228/************************************************************************
     
    5854  if (argc>=2) mpsFileName = argv[1];
    5955  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
    60   assert(numMpsReadErrors==0);
     56  if( numMpsReadErrors != 0 )
     57  {
     58     printf("%d errors reading MPS file\n", numMpsReadErrors);
     59     return numMpsReadErrors;
     60  }
    6161  double time1 = CoinCpuTime();
    6262
Note: See TracChangeset for help on using the changeset viewer.