Skip to content

Commit

Permalink
Merge pull request #2157 from fwesselm/logicalAnd
Browse files Browse the repository at this point in the history
Use && for logical and
  • Loading branch information
jajhall authored Jan 30, 2025
2 parents bb09f23 + 8591ad4 commit aa53030
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mip/HighsMipSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void HighsMipSolver::run() {
mipdata_->runPresolve(options_mip_->presolve_reduction_limit);
analysis_.mipTimerStop(kMipClockRunPresolve);
analysis_.mipTimerStop(kMipClockPresolve);
if (analysis_.analyse_mip_time & !submip)
if (analysis_.analyse_mip_time && !submip)
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - completed presolve\n", timer_.read());
// Identify whether time limit has been reached (in presolve)
Expand All @@ -153,13 +153,13 @@ void HighsMipSolver::run() {

analysis_.mipTimerStart(kMipClockSolve);

if (analysis_.analyse_mip_time & !submip)
if (analysis_.analyse_mip_time && !submip)
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - starting setup\n", timer_.read());
analysis_.mipTimerStart(kMipClockRunSetup);
mipdata_->runSetup();
analysis_.mipTimerStop(kMipClockRunSetup);
if (analysis_.analyse_mip_time & !submip)
if (analysis_.analyse_mip_time && !submip)
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - completed setup\n", timer_.read());
restart:
Expand All @@ -180,7 +180,7 @@ void HighsMipSolver::run() {
return;
}
analysis_.mipTimerStop(kMipClockTrivialHeuristics);
if (analysis_.analyse_mip_time & !submip)
if (analysis_.analyse_mip_time && !submip)
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - starting evaluate root node\n",
timer_.read());
Expand All @@ -192,7 +192,7 @@ void HighsMipSolver::run() {
if (analysis_.analyse_mip_time &&
analysis_.mipTimerRunning(kMipClockIpmSolveLp))
analysis_.mipTimerStop(kMipClockIpmSolveLp);
if (analysis_.analyse_mip_time & !submip)
if (analysis_.analyse_mip_time && !submip)
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
"MIP-Timing: %11.2g - completed evaluate root node\n",
timer_.read());
Expand Down

0 comments on commit aa53030

Please sign in to comment.