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/sample3.cpp

    r1660 r1898  
    9191  solver1.getModelPtr()->setDualBound(1.0e10);
    9292
     93  if (argc <= 1) {
     94     printf("using %s <modelfile>\n", argv[0]);
     95     return 1;
     96  }
     97
    9398  // Read in model using argv[1]
    9499  // and assert that it is a clean model
    95100  int numMpsReadErrors = solver1.readMps(argv[1],"");
    96   assert(numMpsReadErrors==0);
     101  if( numMpsReadErrors != 0 )
     102  {
     103     printf("%d errors reading MPS file\n", numMpsReadErrors);
     104     return numMpsReadErrors;
     105  }
    97106  // do here so integers correct
    98107  CbcModel model(solver1);
Note: See TracChangeset for help on using the changeset viewer.