MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / initializeProfiling

Method initializeProfiling

highs/lp_data/Highs.cpp:5147–5159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5145}
5146
5147void Highs::initializeProfiling(HighsProfiling* profiling) {
5148 if (!profiling) return;
5149 assert(!this->profiling_);
5150 if (this->profiling_) return;
5151 // Only initialize profiling if this->profiling_ is nullptr
5152 const bool sub_solver = this->options_.log_dev_level > 0; // true; //
5153 // Cannot perform MIP profiling without sub-solver profiling
5154 const bool mip = sub_solver && kHighsAnalysisLevelMipTime &
5155 this->options_.highs_analysis_level;
5156 profiling->initialize(this->timer_, sub_solver, mip);
5157 profiling->model_name_ = this->model_.lp_.model_name_;
5158 this->setProfiling(profiling);
5159}
5160
5161void Highs::resetProfiling() {
5162 if (!this->profiling_) return;

Callers 4

presolveMethod · 0.95
optimizeModelMethod · 0.95
resetProfilingMethod · 0.95

Calls 2

setProfilingMethod · 0.95
initializeMethod · 0.45

Tested by

no test coverage detected