Skip to content

Commit c5e2b14

Browse files
committed
Removed trivial breakdown of 0 LP iterations in final MIP log; formatted
1 parent 7883669 commit c5e2b14

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

highs/mip/HighsMipSolver.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -851,14 +851,16 @@ void HighsMipSolver::cleanupSolve() {
851851
" Repair LPs 0\n");
852852
}
853853
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
854-
" LP iterations %llu\n"
855-
" %llu (strong br.)\n"
856-
" %llu (separation)\n"
857-
" %llu (heuristics)\n",
858-
(long long unsigned)mipdata_->total_lp_iterations,
859-
(long long unsigned)mipdata_->sb_lp_iterations,
860-
(long long unsigned)mipdata_->sepa_lp_iterations,
861-
(long long unsigned)mipdata_->heuristic_lp_iterations);
854+
" LP iterations %llu\n",
855+
(long long unsigned)mipdata_->total_lp_iterations);
856+
if (mipdata_->total_lp_iterations)
857+
highsLogUser(options_mip_->log_options, HighsLogType::kInfo,
858+
" %llu (strong br.)\n"
859+
" %llu (separation)\n"
860+
" %llu (heuristics)\n",
861+
(long long unsigned)mipdata_->sb_lp_iterations,
862+
(long long unsigned)mipdata_->sepa_lp_iterations,
863+
(long long unsigned)mipdata_->heuristic_lp_iterations);
862864

863865
if (!timeless_log) analysis_.reportMipTimer();
864866

0 commit comments

Comments
 (0)