Skip to content

Commit

Permalink
Silenced MIP-Timing logging unless mipsolver.analysis_.analyse_mip_ti…
Browse files Browse the repository at this point in the history
…me is true; formatted
  • Loading branch information
jajhall committed Dec 20, 2024
1 parent 0fc4bec commit ee702d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mip/HighsMipSolverData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1866,9 +1866,11 @@ void HighsMipSolverData::evaluateRootNode() {
mipsolver.analysis_.mipTimerStop(kMipClockStartSymmetryDetection);
}
if (compute_analytic_centre && !analyticCenterComputed) {
highsLogUser(mipsolver.options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - starting analytic centre calculation\n",
mipsolver.timer_.read());
if (mipsolver.analysis_.analyse_mip_time)
highsLogUser(
mipsolver.options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - starting analytic centre calculation\n",
mipsolver.timer_.read());
mipsolver.analysis_.mipTimerStart(kMipClockStartAnalyticCentreComputation);
startAnalyticCenterComputation(tg);
mipsolver.analysis_.mipTimerStop(kMipClockStartAnalyticCentreComputation);
Expand Down

0 comments on commit ee702d3

Please sign in to comment.