Skip to content

Commit bdfed7f

Browse files
yuxiestkralphs
authored andcommitted
fix a bug when skip IDIC: compare to etol instead of zero
1 parent 8aa9f01 commit bdfed7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MibSCutGenerator.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ MibSCutGenerator::findLowerLevelSolImprovingDirectionIC(double *uselessIneqs, do
12731273
int whichCutsLL(localModel_->MibSPar_->entry
12741274
(MibSParams::whichCutsLL));
12751275
double timeLimit(localModel_->AlpsPar()->entry(AlpsParams::timeLimit));
1276+
double etol(localModel_->etol_);
12761277
double remainingTime(0.0);
12771278
bool foundSolution = false;
12781279

@@ -1527,7 +1528,7 @@ MibSCutGenerator::findLowerLevelSolImprovingDirectionIC(double *uselessIneqs, do
15271528
CoinDisjointCopyN(optSol, lCols, lowerLevelSol);
15281529
// YX: numerical issue; skip if the lowerLevelSol found is all zero
15291530
for(i = 0; i < lCols; i++){
1530-
if(fabs(lowerLevelSol[i]) > 0){
1531+
if(fabs(lowerLevelSol[i]) > etol){
15311532
solErr = false;
15321533
break;
15331534
}

0 commit comments

Comments
 (0)