Skip to content

Commit 85ab358

Browse files
committed
Adjust sign of score comparison
1 parent f2f5829 commit 85ab358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highs/mip/HighsPathSeparator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ void HighsPathSeparator::separateLpSolution(HighsLpRelaxation& lpRelaxation,
216216
inArcRows.begin() + colInArcs[col].second,
217217
[&](const std::pair<HighsInt, double>& i,
218218
const std::pair<HighsInt, double>& j) {
219-
return rowScore[i.first] < rowScore[j.first];
219+
return rowScore[i.first] > rowScore[j.first];
220220
});
221221
pdqsort(outArcRows.begin() + colOutArcs[col].first,
222222
outArcRows.begin() + colOutArcs[col].second,
223223
[&](const std::pair<HighsInt, double>& i,
224224
const std::pair<HighsInt, double>& j) {
225-
return rowScore[i.first] < rowScore[j.first];
225+
return rowScore[i.first] > rowScore[j.first];
226226
});
227227
}
228228

0 commit comments

Comments
 (0)