| 701 | } |
| 702 | |
| 703 | void HighsSimplexAnalysis::iterationRecordMajor() { |
| 704 | assert(analyse_simplex_summary_data); |
| 705 | sum_multi_chosen += multi_chosen; |
| 706 | sum_multi_finished += multi_finished; |
| 707 | assert(multi_chosen > 0); |
| 708 | const double fraction_of_possible_minor_iterations_performed = |
| 709 | 1.0 * multi_finished / multi_chosen; |
| 710 | if (average_fraction_of_possible_minor_iterations_performed < 0) { |
| 711 | average_fraction_of_possible_minor_iterations_performed = |
| 712 | fraction_of_possible_minor_iterations_performed; |
| 713 | } else { |
| 714 | average_fraction_of_possible_minor_iterations_performed = |
| 715 | kRunningAverageMultiplier * |
| 716 | fraction_of_possible_minor_iterations_performed + |
| 717 | (1 - kRunningAverageMultiplier) * |
| 718 | average_fraction_of_possible_minor_iterations_performed; |
| 719 | } |
| 720 | if (average_concurrency < 0) { |
| 721 | average_concurrency = num_concurrency; |
| 722 | } else { |
| 723 | average_concurrency = kRunningAverageMultiplier * num_concurrency + |
| 724 | (1 - kRunningAverageMultiplier) * average_concurrency; |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | void HighsSimplexAnalysis::operationRecordBefore( |
| 729 | const HighsInt operation_type, const HVector& vector, |
no outgoing calls
no test coverage detected