Skip to content

Commit 5d412d6

Browse files
committed
avoid assert on infeasible problems
1 parent 8d0c2d5 commit 5d412d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CbcSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5788,7 +5788,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
57885788
ClpSimplex *modelC = si->getModelPtr();
57895789
// if (noPrinting_)
57905790
// modelC->setLogLevel(0);
5791-
if (!complicatedInteger && modelC->tightenPrimalBounds() != 0) {
5791+
if (!complicatedInteger && modelC->tightenPrimalBounds(0.0,0,true) != 0) {
57925792
printGeneralMessage(model_, "Problem is infeasible!");
57935793
model_.setProblemStatus(0);
57945794
model_.setSecondaryStatus(1);

0 commit comments

Comments
 (0)