Skip to content

Commit 6ba9de8

Browse files
committed
error that showed up on difficult dual simplex
1 parent f8f6aea commit 6ba9de8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ClpSolve.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4464,12 +4464,12 @@ int ClpSimplexProgress::looping()
44644464
if (matched == (1 << (CLP_PROGRESS - 1)))
44654465
numberMatched = 0;
44664466
if (model_->numberIterations()>20*model_->numberRows()
4467-
+5*model_->numberColumns()+100) {
4467+
+5*model_->numberColumns()+100 && (model_->specialOptions()&0x03000000)!=0) {
44684468
// pretty bad
4469-
// make factorize every iteration
4469+
// make factorize more often
44704470
if (model_->numberIterations()<25*model_->numberRows()
4471-
+8*model_->numberColumns()+300) {
4472-
model_->forceFactorization(1);
4471+
+8*model_->numberColumns()+300 && numberReallyBadTimes_<100) {
4472+
model_->forceFactorization(std::min(model_->forceFactorization(),5));
44734473
numberReallyBadTimes_++;
44744474
} else {
44754475
// give up

0 commit comments

Comments
 (0)