Skip to content

Commit

Permalink
switch algorithms if large number iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Nov 14, 2022
1 parent 3e8f83c commit 5f42a5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ClpSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4365,6 +4365,10 @@ int ClpSimplexProgress::looping()
infeasibility = model_->sumDualInfeasibilities();
realInfeasibility = model_->nonLinearCost()->sumInfeasibilities();
numberInfeasibilities = model_->numberDualInfeasibilities();
if (iterationNumber>3*model_->numberRows()+3*model_->numberColumns()) {
// should I put out a message
return 1;
}
}
int i;
int numberMatched = 0;
Expand Down

0 comments on commit 5f42a5f

Please sign in to comment.