Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fwesselm committed Jul 17, 2024
1 parent 8966bc0 commit d318f65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mip/HighsImplications.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class HighsImplications {
double vlbconstant);

void columnTransformed(HighsInt col, double scale, double constant) {
// Update variable bounds affected by transformation
if (scale < 0) std::swap(vubs[col], vlbs[col]);

auto transformVbd = [&](HighsInt, VarBound& vbd) {
Expand All @@ -120,6 +121,7 @@ class HighsImplications {
vlbs[col].for_each(transformVbd);
vubs[col].for_each(transformVbd);

// Update substitutions affected by transformation
for (auto& substitution : substitutions) {
if (substitution.substcol == col) {
substitution.offset -= constant;
Expand Down

0 comments on commit d318f65

Please sign in to comment.