Skip to content

Commit 9903204

Browse files
committed
Make clang format happy
1 parent ee50b06 commit 9903204

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ bool HighsCutGeneration::cmirCutGenerationHeuristic(double minEfficacy,
706706
// Skip numerically troublesome cuts
707707
double k = fast_ceil((1 / f0) - epsilon) - 1;
708708
double checkk = fast_ceil((1 / f0) + epsilon) - 1;
709-
if (fabs(k - checkk) >= 0.5) {
709+
if (checkk - k > 0.5) {
710710
strongcg = false;
711711
} else {
712712
// All coefficients of continuous variables are 0 in strong CG cut
@@ -722,7 +722,7 @@ bool HighsCutGeneration::cmirCutGenerationHeuristic(double minEfficacy,
722722
updateViolationAndNorm(j, aj, viol, sqrnorm);
723723
} else {
724724
double pj =
725-
fast_ceil(k * (fj - f0) * oneoveroneminusf0 - (10 * epsilon));
725+
fast_ceil(k * (fj - f0) * oneoveroneminusf0 - (10 * epsilon));
726726
double aj = downaj + (pj / (k + 1));
727727
updateViolationAndNorm(j, aj, viol, sqrnorm);
728728
}
@@ -770,8 +770,7 @@ bool HighsCutGeneration::cmirCutGenerationHeuristic(double minEfficacy,
770770
if (fj > f0) {
771771
if (strongcg) {
772772
if (fj - f0 > epsilon) {
773-
HighsCDouble pj =
774-
ceil(k * (fj - f0) * oneoveroneminusf0 - epsilon);
773+
HighsCDouble pj = ceil(k * (fj - f0) * oneoveroneminusf0 - epsilon);
775774
aj += pj / (k + 1);
776775
}
777776
} else {

0 commit comments

Comments
 (0)