Skip to content

Commit

Permalink
Merge pull request #1998 from fwesselm/DevLogFix
Browse files Browse the repository at this point in the history
Prevent reporting negative running times (-1)
  • Loading branch information
jajhall authored Oct 24, 2024
2 parents bb9f221 + 8ce15b3 commit 320480c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/lp_data/Highs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1575,14 +1575,18 @@ HighsStatus Highs::run() {
"Postsolve : %" HIGHSINT_FORMAT "\n",
postsolve_iteration_count);
}
highsLogDev(log_options, HighsLogType::kInfo, "Time : %8.2f\n",
this_solve_time);
highsLogDev(log_options, HighsLogType::kInfo, "Time Pre : %8.2f\n",
this_presolve_time);
highsLogDev(log_options, HighsLogType::kInfo, "Time PreLP : %8.2f\n",
this_solve_presolved_lp_time);
highsLogDev(log_options, HighsLogType::kInfo, "Time PostLP: %8.2f\n",
this_solve_original_lp_time);
if (this_solve_time > 0)
highsLogDev(log_options, HighsLogType::kInfo, "Time : %8.2f\n",
this_solve_time);
if (this_presolve_time > 0)
highsLogDev(log_options, HighsLogType::kInfo, "Time Pre : %8.2f\n",
this_presolve_time);
if (this_solve_presolved_lp_time > 0)
highsLogDev(log_options, HighsLogType::kInfo, "Time PreLP : %8.2f\n",
this_solve_presolved_lp_time);
if (this_solve_original_lp_time > 0)
highsLogDev(log_options, HighsLogType::kInfo, "Time PostLP: %8.2f\n",
this_solve_original_lp_time);
if (this_solve_time > 0) {
highsLogDev(log_options, HighsLogType::kInfo, "For LP %16s",
incumbent_lp.model_name_.c_str());
Expand Down

0 comments on commit 320480c

Please sign in to comment.