Skip to content

Commit

Permalink
Only generate IDICs when both upper- and lower-level solutions are in…
Browse files Browse the repository at this point in the history
…tegral if useFractionalCuts is false
  • Loading branch information
tkralphs committed Sep 9, 2024
1 parent bc356dc commit 4377871
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/MibSCutGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6019,7 +6019,7 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
numCuts += intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
}

if (useImprovingDirectionIC == PARAM_ON){
if (useFractionalCuts && useImprovingDirectionIC == PARAM_ON){
cutType = MibSIntersectionCutImprovingDirection;
numCuts += intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
}
Expand All @@ -6044,9 +6044,10 @@ MibSCutGenerator::generateConstraints(BcpsConstraintPool &conPool)
//and should always be false (see BlisTreeNode.cpp)
return (false);

}else if (bS->isLowerIntegral_ || useFractionalCuts ||
(useFractionalCutsRootOnly && localModel_->activeNode_->getDepth() == 0)){

}else if (bS->isLowerIntegral_ &&
(useFractionalCuts ||
(useFractionalCutsRootOnly &&
localModel_->activeNode_->getDepth() == 0))){
if (useImprovingDirectionIC == PARAM_ON){
cutType = MibSIntersectionCutImprovingDirection;
numCuts += intersectionCuts(conPool, bS->optLowerSolutionOrd_, cutType);
Expand Down

0 comments on commit 4377871

Please sign in to comment.