Skip to content

Commit c9ee426

Browse files
committed
Remove two redundant checks / assignments
1 parent ffdb2a4 commit c9ee426

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,6 @@ bool HighsCutGeneration::generateCut(HighsTransformedLp& transLp,
13531353
lpRelaxation.getMipSolver().options_mip_->mip_cut_flow_cover) {
13541354
flowCoverVals = vals_;
13551355
flowCoverInds = inds_;
1356-
genFlowCover = true;
13571356
} else {
13581357
genFlowCover = false;
13591358
}
@@ -1446,7 +1445,7 @@ bool HighsCutGeneration::generateCut(HighsTransformedLp& transLp,
14461445
} else {
14471446
efficacy = viol / sqrt(sqrnorm);
14481447
}
1449-
if (flowCoverSuccess && flowCoverEfficacy > 1.2 * efficacy) {
1448+
if (flowCoverEfficacy > 1.2 * efficacy) {
14501449
rhs_ = flowCoverRhs;
14511450
std::swap(vals_, flowCoverVals);
14521451
std::swap(inds_, flowCoverInds);

0 commit comments

Comments
 (0)