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

Method setupFactorTime

highs/simplex/HighsSimplexAnalysis.cpp:289–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void HighsSimplexAnalysis::setupFactorTime(const HighsOptions& options) {
290 analyse_factor_time =
291 kHighsAnalysisLevelNlaTime & options.highs_analysis_level;
292 if (analyse_factor_time) {
293 // Set up the thread clocks
294 HighsInt max_threads = highs::parallel::num_threads();
295 thread_factor_clocks.clear();
296 for (HighsInt i = 0; i < max_threads; i++) {
297 HighsTimerClock clock;
298 clock.timer_pointer_ = timer_;
299 thread_factor_clocks.push_back(clock);
300 }
301 pointer_serial_factor_clocks = thread_factor_clocks.data();
302 FactorTimer factor_timer;
303 for (HighsTimerClock& clock : thread_factor_clocks)
304 factor_timer.initialiseFactorClocks(clock);
305 } else {
306 pointer_serial_factor_clocks = NULL;
307 }
308}
309
310void HighsSimplexAnalysis::messaging(const HighsLogOptions& log_options_) {
311 log_options = log_options_;

Callers

nothing calls this directly

Calls 5

num_threadsFunction · 0.85
push_backMethod · 0.80
dataMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected