Skip to content

Commit cb7f9f1

Browse files
committed
Remove shifting of short domain integer columns
1 parent 0abeed6 commit cb7f9f1

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

highs/presolve/HPresolve.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4465,25 +4465,6 @@ HPresolve::Result HPresolve::colPresolve(HighsPostsolveStack& postsolve_stack,
44654465

44664466
// check if variable is implied integer
44674467
HPRESOLVE_CHECKED_CALL(static_cast<Result>(convertImpliedInteger(col)));
4468-
4469-
// shift integral variables to have a lower bound of zero
4470-
if (model->integrality_[col] != HighsVarType::kContinuous &&
4471-
model->col_lower_[col] != 0.0 &&
4472-
(model->col_lower_[col] != -kHighsInf ||
4473-
model->col_upper_[col] != kHighsInf) &&
4474-
model->col_upper_[col] - model->col_lower_[col] > 0.5) {
4475-
// substitute with the bound that is smaller in magnitude and only
4476-
// substitute if bound is not large for an integer
4477-
if (std::abs(model->col_upper_[col]) > std::abs(model->col_lower_[col])) {
4478-
if (std::abs(model->col_lower_[col]) < 1000.5)
4479-
HPRESOLVE_CHECKED_CALL(transformColumn(postsolve_stack, col, 1.0,
4480-
model->col_lower_[col]));
4481-
} else {
4482-
if (std::abs(model->col_upper_[col]) < 1000.5)
4483-
HPRESOLVE_CHECKED_CALL(transformColumn(postsolve_stack, col, -1.0,
4484-
model->col_upper_[col]));
4485-
}
4486-
}
44874468
}
44884469

44894470
// dual fixing

0 commit comments

Comments
 (0)