Skip to content

Commit

Permalink
Remove COIN_HAS_CLP check from CbcModel
Browse files Browse the repository at this point in the history
Cbc depends on Clp, so the condition should always be true.
  • Loading branch information
a-andre committed Jul 25, 2024
1 parent 3c18d19 commit 07075fa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/CbcModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6363,15 +6363,11 @@ void CbcModel::initialSolve() {
solver_->initialSolve();
solver_->setHintParam(OsiDoInBranchAndCut, false, OsiHintDo, NULL);
if (!solver_->isProvenOptimal()) {
#ifdef COIN_HAS_CLP
OsiClpSolverInterface *clpSolver
= dynamic_cast< OsiClpSolverInterface * >(solver_);
// Do not resolve if presolve found infeasible/unbounded
if (!clpSolver || clpSolver->getModelPtr()->secondaryStatus()!=11)
solver_->resolve();
#else
solver_->resolve();
#endif
}
// But set up so Jon Lee will be happy
status_ = -1;
Expand Down

0 comments on commit 07075fa

Please sign in to comment.