Changeset 967 for branches


Ignore:
Timestamp:
Jun 5, 2008 1:07:28 PM (11 years ago)
Author:
ladanyi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dynamicbranching/dynamicbranching.cpp

    r965 r967  
    10551055      model.resolve();
    10561056    } else {
    1057       //      modelPtr_->setProblemStatus(1);
     1057      OsiClpSolverInterface* clp =
     1058        dynamic_cast<OsiClpSolverInterface*>(&model);
     1059      if (clp) {
     1060        ClpSimplex* modelPtr_ = clp->getModelPtr();
     1061        modelPtr_->setProblemStatus(1);
     1062      }
    10581063    }
    10591064    delete [] which;
     
    10651070    std::cout<<"The LP relaxation is infeasible"
    10661071             <<std::endl;
    1067     //    modelPtr_->setProblemStatus(1);
     1072    OsiClpSolverInterface* clp =
     1073      dynamic_cast<OsiClpSolverInterface*>(&model);
     1074    if (clp) {
     1075      ClpSimplex* modelPtr_ = clp->getModelPtr();
     1076      modelPtr_->setProblemStatus(1);
     1077    }
    10681078    //throw CoinError("The LP relaxation is infeasible or too expensive",
    10691079    //"branchAndBound", "OsiClpSolverInterface");
Note: See TracChangeset for help on using the changeset viewer.