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

fixup examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/qmip.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
     9
     10#include "CoinPragma.hpp"
    1411
    1512// For Branch and bound
     
    6764
    6865  // Read in model using argv[1]
     66  if (argc <= 1) {
     67     printf("using %s <modelfile>\n", argv[0]);
     68     return 1;
     69  }
    6970  // must use clp to get a quadratic model
    7071  ClpSimplex * clp = solver1.getModelPtr();
    7172  int numMpsReadErrors = clp->readMps(argv[1]);
    7273  // and assert that it is a clean model
    73   assert(numMpsReadErrors==0);
     74  if( numMpsReadErrors != 0 )
     75  {
     76     printf("%d errors reading MPS file\n", numMpsReadErrors);
     77     return numMpsReadErrors;
     78  }
    7479
    7580  // This clones solver
Note: See TracChangeset for help on using the changeset viewer.