Changeset 155


Ignore:
Timestamp:
Jul 9, 2005 4:03:16 PM (17 years ago)
Author:
forrest
Message:

return if no solution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Samples/CbcHeuristicUser.cpp

    r138 r155  
    200200  const double * rowUpper = solver->getRowUpper();
    201201  const double * solution = model_->bestSolution();
     202  if (!solution)
     203    return 0; // No solution found yet
    202204  const double * objective = solver->getObjCoefficients();
    203205  double primalTolerance;
Note: See TracChangeset for help on using the changeset viewer.