Ignore:
Timestamp:
Jul 9, 2006 9:50:11 AM (14 years ago)
Author:
forrest
Message:

for infeasible problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcModel.cpp

    r397 r404  
    19361936*/
    19371937  globalCuts_= OsiCuts() ;
     1938  if (!bestSolution_) {
     1939    // make sure lp solver is infeasible
     1940    int numberColumns = solver_->getNumCols();
     1941    const double * columnLower = solver_->getColLower();
     1942    int iColumn;
     1943    for (iColumn=0;iColumn<numberColumns;iColumn++) {
     1944      if (solver_->isInteger(iColumn))
     1945        solver_->setColUpper(iColumn,columnLower[iColumn]);
     1946    }
     1947    solver_->initialSolve();
     1948  }
    19381949  if (strategy_&&strategy_->preProcessState()>0) {
    19391950    // undo preprocessing
Note: See TracChangeset for help on using the changeset viewer.