Skip to content

Commit

Permalink
Total MIP solver time now reported using MipAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Sep 25, 2024
1 parent fb77442 commit 2fc4a98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mip/HighsMipSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "mip/HighsPseudocost.h"
#include "mip/HighsSearch.h"
#include "mip/HighsSeparation.h"
#include "mip/MipTimer.h"
#include "presolve/HPresolve.h"
#include "presolve/HighsPostsolveStack.h"
#include "presolve/PresolveComponent.h"
Expand Down Expand Up @@ -116,6 +117,7 @@ void HighsMipSolver::run() {
analysis_.timer_ = &this->timer_;
analysis_.setup(*orig_model_, *options_mip_);
}
analysis_.mipTimerStart(kMipClockTotal);

improving_solution_file_ = nullptr;
if (!submip && options_mip_->mip_improving_solution_file != "")
Expand Down Expand Up @@ -577,6 +579,9 @@ void HighsMipSolver::cleanupSolve() {

timer_.stop(timer_.postsolve_clock);
timer_.stop(timer_.solve_clock);
analysis_.mipTimerStop(kMipClockTotal);
analysis_.reportMipTimer();

std::string solutionstatus = "-";

if (havesolution) {
Expand Down

0 comments on commit 2fc4a98

Please sign in to comment.