Skip to content

Commit 9ae704d

Browse files
committed
Don't cut not finding any intersection points as a failure
1 parent 5c285ce commit 9ae704d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MibSCutGenerator.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -5980,7 +5980,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
59805980
if (useImprovingDirectionIC == PARAM_ON){
59815981
cutType = MibSIntersectionCutImprovingDirection;
59825982
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
5983-
if (returnVal){
5983+
if (returnVal || localModel_->bS_->shouldPrune_){
59845984
localModel_->counterXYIntIDIC_++;
59855985
}else{
59865986
localModel_->counterXYIntIDICFail_++;
@@ -6048,7 +6048,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
60486048
localModel_->activeNode_->getDepth() == 0))){
60496049
cutType = MibSIntersectionCutImprovingDirection;
60506050
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
6051-
if (returnVal){
6051+
if (returnVal || localModel_->bS_->shouldPrune_){
60526052
localModel_->counterLIntIDIC_++;
60536053
}else{
60546054
localModel_->counterLIntIDICFail_++;
@@ -6113,7 +6113,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
61136113
localModel_->activeNode_->getDepth() == 0))){
61146114
cutType = MibSIntersectionCutImprovingDirection;
61156115
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
6116-
if (returnVal){
6116+
if (returnVal || localModel_->bS_->shouldPrune_){
61176117
localModel_->counterYIntIDIC_++;
61186118
}else{
61196119
localModel_->counterYIntIDICFail_++;
@@ -6151,7 +6151,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
61516151
localModel_->activeNode_->getDepth() == 0))){
61526152
cutType = MibSIntersectionCutImprovingDirection;
61536153
returnVal = intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
6154-
if (returnVal){
6154+
if (returnVal || localModel_->bS_->shouldPrune_){
61556155
localModel_->counterFracIDIC_++;
61566156
}else{
61576157
localModel_->counterFracIDICFail_++;

0 commit comments

Comments
 (0)