Skip to content

Commit

Permalink
Don't cut not finding any intersection points as a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tkralphs committed Jan 16, 2025
1 parent 5c285ce commit 9ae704d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MibSCutGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5980,7 +5980,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
if (useImprovingDirectionIC == PARAM_ON){
cutType = MibSIntersectionCutImprovingDirection;
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
if (returnVal){
if (returnVal || localModel_->bS_->shouldPrune_){
localModel_->counterXYIntIDIC_++;
}else{
localModel_->counterXYIntIDICFail_++;
Expand Down Expand Up @@ -6048,7 +6048,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
localModel_->activeNode_->getDepth() == 0))){
cutType = MibSIntersectionCutImprovingDirection;
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
if (returnVal){
if (returnVal || localModel_->bS_->shouldPrune_){
localModel_->counterLIntIDIC_++;
}else{
localModel_->counterLIntIDICFail_++;
Expand Down Expand Up @@ -6113,7 +6113,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
localModel_->activeNode_->getDepth() == 0))){
cutType = MibSIntersectionCutImprovingDirection;
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
if (returnVal){
if (returnVal || localModel_->bS_->shouldPrune_){
localModel_->counterYIntIDIC_++;
}else{
localModel_->counterYIntIDICFail_++;
Expand Down Expand Up @@ -6151,7 +6151,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
localModel_->activeNode_->getDepth() == 0))){
cutType = MibSIntersectionCutImprovingDirection;
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
if (returnVal){
if (returnVal || localModel_->bS_->shouldPrune_){
localModel_->counterFracIDIC_++;
}else{
localModel_->counterFracIDICFail_++;
Expand Down

0 comments on commit 9ae704d

Please sign in to comment.