Skip to content

Commit 701a8e7

Browse files
committed
Fix clocks. Enable heuristics
1 parent 66b4f3d commit 701a8e7

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

highs/mip/HighsLpRelaxation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ void HighsLpRelaxation::removeCuts(HighsInt ndelcuts,
591591
basis.debug_origin_name = "HighsLpRelaxation::removeCuts";
592592
lpsolver.setBasis(basis);
593593
lpsolver.run();
594-
if (!mipsolver.submip) {
594+
if (!mipsolver.submip && !mipsolver.mipdata_->parallelLockActive()) {
595595
const HighsSubSolverCallTime& sub_solver_call_time =
596596
lpsolver.getSubSolverCallTime();
597597
mipsolver.analysis_.addSubSolverCallTime(sub_solver_call_time);
@@ -1211,7 +1211,7 @@ HighsLpRelaxation::Status HighsLpRelaxation::run(bool resolve_on_error) {
12111211
}
12121212
// Revert the value of lpsolver.options_.solver
12131213
lpsolver.setOptionValue("solver", solver);
1214-
if (!mipsolver.submip) {
1214+
if (!mipsolver.submip && !mipsolver.mipdata_->parallelLockActive()) {
12151215
const HighsSubSolverCallTime& sub_solver_call_time =
12161216
lpsolver.getSubSolverCallTime();
12171217
mipsolver.analysis_.addSubSolverCallTime(sub_solver_call_time);

highs/mip/HighsMipSolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ void HighsMipSolver::run() {
681681
};
682682
analysis_.mipTimerStart(kMipClockNodePrunedLoop);
683683
applyTask(doHandlePrunedNodes, tg, true, search_indices);
684-
analysis_.mipTimerStop(kMipClockNodePrunedLoop);
685684
// Flush pruned nodes statistics that haven't yet been flushed
686685
for (HighsInt i = 0; i != n; ++i) {
687686
if (flush[i]) {
@@ -925,7 +924,7 @@ void HighsMipSolver::run() {
925924

926925
// atm heuristics in the dive break lseu debug64
927926
// bool considerHeuristics = true;
928-
bool considerHeuristics = false;
927+
bool considerHeuristics = true;
929928

930929
analysis_.mipTimerStart(kMipClockDive);
931930
while (true) {

highs/mip/HighsPrimalHeuristics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ void HighsPrimalHeuristics::rootReducedCost(HighsMipWorker& worker) {
349349
double fixingRate = neighbourhood.getFixingRate();
350350
if (fixingRate < 0.3) return;
351351

352-
// mipsolver.analysis_.mipTimerStart(kMipClockSolveSubMipRootReducedCost);
353352
solveSubMip(worker, *mipsolver.model_, mipsolver.mipdata_->firstrootbasis,
354353
fixingRate, localdom.col_lower_, localdom.col_upper_,
355354
500, // std::max(50, int(0.05 *

0 commit comments

Comments
 (0)