Skip to content

Commit 4953df6

Browse files
committed
Add comments from Franz
1 parent 2bb6401 commit 4953df6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

highs/mip/HighsMachineSchedSeparator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool HighsMachineSchedSeparator::findSingleMachineScheduleClique(
4343
if (p < 0) return;
4444
const auto it = adjacency.find({negCol, posCol});
4545
if (it != nullptr) {
46-
if (std::get<0>(*it) > p) {
46+
if (std::get<0>(*it) < p) {
4747
adjacency[{negCol, posCol}] = std::make_tuple(p, binCol, t);
4848
}
4949
} else {
@@ -121,7 +121,7 @@ bool HighsMachineSchedSeparator::findSingleMachineScheduleClique(
121121
const double rhs_0 = -rowUpper;
122122
const double rhs_1 = -rowUpper + binCoef;
123123
if (rhs_0 > 0 || rhs_1 > 0) {
124-
if (rhs_0 > 0) {
124+
if (rhs_0 > rhs_1) {
125125
addEntry(negContCol, posContCol, binCol, rhs_0, ArcType::kIfBinZero);
126126
} else {
127127
addEntry(negContCol, posContCol, binCol, rhs_1, ArcType::kIfBinOne);
@@ -136,7 +136,7 @@ bool HighsMachineSchedSeparator::findSingleMachineScheduleClique(
136136
const double rhs_0 = rowLower;
137137
const double rhs_1 = rowLower - binCoef;
138138
if (rhs_0 > 0 || rhs_1 > 0) {
139-
if (rhs_0 > 0) {
139+
if (rhs_0 > rhs_1) {
140140
addEntry(posContCol, negContCol, binCol, rhs_0, ArcType::kIfBinZero);
141141
} else {
142142
addEntry(posContCol, negContCol, binCol, rhs_1, ArcType::kIfBinOne);

0 commit comments

Comments
 (0)