Skip to content

Commit cacef11

Browse files
committed
Simplif
1 parent e62f998 commit cacef11

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,19 +1424,13 @@ HPresolve::Result HPresolve::runProbing(HighsPostsolveStack& postsolve_stack) {
14241424
// columns since it may allow stronger dual presolve and more aggregations
14251425
double hugeBound = primal_feastol / kHighsTiny;
14261426
for (HighsInt i = 0; i != model->num_col_; ++i) {
1427-
if (model->col_lower_[i] >= implColLower[i] &&
1428-
model->col_upper_[i] <= implColUpper[i])
1429-
continue;
1430-
1431-
if (std::abs(implColLower[i]) <= hugeBound) {
1432-
double newLb = implColLower[i];
1433-
if (newLb > model->col_lower_[i]) changeColLower(i, newLb);
1434-
}
1427+
if (std::abs(implColLower[i]) <= hugeBound &&
1428+
implColLower[i] > model->col_lower_[i])
1429+
changeColLower(i, implColLower[i]);
14351430

1436-
if (std::abs(implColUpper[i]) <= hugeBound) {
1437-
double newUb = implColUpper[i];
1438-
if (newUb < model->col_upper_[i]) changeColUpper(i, newUb);
1439-
}
1431+
if (std::abs(implColUpper[i]) <= hugeBound &&
1432+
implColUpper[i] < model->col_upper_[i])
1433+
changeColUpper(i, implColUpper[i]);
14401434
}
14411435

14421436
HighsInt oldNumProbed = numProbed;

0 commit comments

Comments
 (0)