Changeset 2361


Ignore:
Timestamp:
Jan 30, 2018 10:49:34 AM (3 weeks ago)
Author:
forrest
Message:

program needs a sensible problem

File:
1 edited

Legend:

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

    r1898 r2361  
    106106  std::cout<<"Presolve took "<<time2-time1<<" seconds"<<std::endl;;
    107107  time1 = time2;
     108  if (!simplex2 ||!simplex2->integerInformation()) {
     109    std::cout<<"Please use a feasible problem which has integers after presolve"<<std::endl;
     110    exit(77);
     111  }
    108112  OsiClpSolverInterface solver1(simplex2);
    109113  solver1.writeMps("bad2");
Note: See TracChangeset for help on using the changeset viewer.