Skip to content

Commit

Permalink
fix a bug when skip IDIC: compare to etol instead of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxies committed May 21, 2024
1 parent f5135aa commit 76405f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MibSCutGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,7 @@ MibSCutGenerator::findLowerLevelSolImprovingDirectionIC(double *uselessIneqs, do
int whichCutsLL(localModel_->MibSPar_->entry
(MibSParams::whichCutsLL));
double timeLimit(localModel_->AlpsPar()->entry(AlpsParams::timeLimit));
double etol(localModel_->etol_);
double remainingTime(0.0);
bool foundSolution = false;

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

0 comments on commit 76405f1

Please sign in to comment.