Skip to content

Commit dd658b5

Browse files
committed
Correct efficacy calc
1 parent 74aff96 commit dd658b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highs/mip/HighsTransformedLp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,14 +946,14 @@ bool HighsTransformedLp::cleanup(std::vector<HighsInt>& inds,
946946
const std::vector<double>& lpSolution = lprelaxation.getSolution().col_value;
947947
for (HighsInt i = 0; i != numNz; ++i) {
948948
HighsInt col = inds[i];
949+
viol += vals[i] * lpSolution[col];
949950
if (vals[i] >= 0 &&
950951
lpSolution[col] <=
951952
mip.mipdata_->domain.col_lower_[col] + mip.mipdata_->feastol)
952953
continue;
953954
if (vals[i] < 0 && lpSolution[col] >= mip.mipdata_->domain.col_upper_[col] -
954955
mip.mipdata_->feastol)
955956
continue;
956-
viol += vals[i] * lpSolution[col];
957957
sqrnorm += vals[i] * vals[i];
958958
}
959959
if (sqrnorm == 0) {

0 commit comments

Comments
 (0)