| 312 | } |
| 313 | |
| 314 | void HighsSimplexAnalysis::iterationReport() { |
| 315 | const bool simple_report = false; |
| 316 | if (simple_report) { |
| 317 | printf( |
| 318 | "Iter %5d: (%6d; %6d) delta_primal = %11.4g; dual_step = %11.4g; " |
| 319 | "primal_step = %11.4g\n", |
| 320 | (int)simplex_iteration_count, (int)leaving_variable, |
| 321 | (int)entering_variable, primal_delta, dual_step, primal_step); |
| 322 | } |
| 323 | if (*log_options.log_dev_level < (HighsInt)kIterationReportLogType) return; |
| 324 | const bool header = (num_iteration_report_since_last_header < 0) || |
| 325 | (num_iteration_report_since_last_header > 49); |
| 326 | if (header) { |
| 327 | iterationReport(header); |
| 328 | num_iteration_report_since_last_header = 0; |
| 329 | } |
| 330 | iterationReport(false); |
| 331 | } |
| 332 | |
| 333 | // Called externally - from HEkkPrimal/Dual::reportRebuild |
| 334 | void HighsSimplexAnalysis::invertReport() { |
no test coverage detected