Skip to content

Commit 32e88dd

Browse files
committed
Disable debug sol during presolve. Indices not adjusted for implics
1 parent c4d726e commit 32e88dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

highs/mip/HighsMipSolver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ void HighsMipSolver::run() {
8989
analysis_.mipTimerStop(kMipClockInit);
9090
#ifdef HIGHS_DEBUGSOL
9191
mipdata_->debugSolution.activate();
92+
bool debugSolActive = false;
93+
std::swap(mipdata_->debugSolution.debugSolActive, debugSolActive);
9294
#endif
9395
analysis_.mipTimerStart(kMipClockRunPresolve);
9496
mipdata_->runPresolve(options_mip_->presolve_reduction_limit);
@@ -122,6 +124,9 @@ void HighsMipSolver::run() {
122124
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
123125
"MIP-Timing: %11.2g - starting setup\n", timer_.read());
124126
analysis_.mipTimerStart(kMipClockRunSetup);
127+
#ifdef HIGHS_DEBUGSOL
128+
mipdata_->debugSolution.debugSolActive = debugSolActive;
129+
#endif
125130
mipdata_->runSetup();
126131
analysis_.mipTimerStop(kMipClockRunSetup);
127132
if (analysis_.analyse_mip_time && !submip)

0 commit comments

Comments
 (0)