Skip to content

Commit e6ba02a

Browse files
committed
Comment out averaged score and edgescore. Reduced max degenfac
1 parent 984c7bc commit e6ba02a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

highs/mip/HighsSearch.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -819,21 +819,21 @@ HighsInt HighsSearch::selectBranchingCandidate(int64_t maxSbIters,
819819
}
820820

821821
if (!mipsolver.submip) {
822-
double avgshadowscore = 0;
823-
double avgedgescore = 0;
824-
for (HighsInt i = 0; i < numfrac; i++) {
825-
avgshadowscore += shadowscore[i];
826-
avgedgescore += edgescore[i];
827-
}
828-
avgshadowscore /= numfrac;
829-
avgedgescore /= numfrac;
830-
for (HighsInt i = 0; i < numfrac; i++) {
831-
shadowscore[i] = 1 - (1 / (1 + (shadowscore[i] / std::max(1e-6,
832-
avgshadowscore))));
833-
edgescore[i] = 1 - (1 / (1 + (edgescore[i] / std::max(1e-6,
834-
avgedgescore))));
835-
shadowscore[i] = shadowscore[i] + (1e-2 * edgescore[i]);
836-
}
822+
// double avgshadowscore = 0;
823+
// double avgedgescore = 0;
824+
// for (HighsInt i = 0; i < numfrac; i++) {
825+
// avgshadowscore += shadowscore[i];
826+
// avgedgescore += edgescore[i];
827+
// }
828+
// avgshadowscore /= numfrac;
829+
// avgedgescore /= numfrac;
830+
// for (HighsInt i = 0; i < numfrac; i++) {
831+
// shadowscore[i] = 1 - (1 / (1 + (shadowscore[i] / std::max(1e-6,
832+
// avgshadowscore))));
833+
// edgescore[i] = 1 - (1 / (1 + (edgescore[i] / std::max(1e-6,
834+
// avgedgescore))));
835+
// shadowscore[i] = shadowscore[i] + (1e-2 * edgescore[i]);
836+
// }
837837
sortCandidates(shadowscore);
838838
if (numcands == 1) {
839839
downNodeLb = downbound[perm[0]];
@@ -1250,7 +1250,7 @@ HighsSearch::NodeResult HighsSearch::branch() {
12501250
}
12511251
}
12521252

1253-
double degeneracyFac = std::min(1000.0, lp->computeLPDegneracy(localdom));
1253+
double degeneracyFac = std::min(10.0, lp->computeLPDegneracy(localdom));
12541254
pseudocost.setDegeneracyFactor(degeneracyFac);
12551255
if (degeneracyFac >= 10.0) pseudocost.setMinReliable(0);
12561256
// if (!mipsolver.submip)

0 commit comments

Comments
 (0)