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

Method assessSmallValues

highs/util/HighsSparseMatrix.cpp:815–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815void HighsSparseMatrix::assessSmallValues(const HighsLogOptions& log_options,
816 const double small_matrix_value) {
817 double min_value = kHighsInf;
818 const HighsInt num_values = static_cast<HighsInt>(this->value_.size());
819 for (HighsInt iX = 0; iX < num_values; iX++)
820 min_value = std::min(std::abs(this->value_[iX]), min_value);
821 if (min_value > small_matrix_value) return;
822 analyseVectorValues(&log_options, "Small values in matrix", num_values,
823 this->value_, false, "");
824}
825
826bool HighsSparseMatrix::hasLargeValue(const double large_matrix_value) {
827 for (HighsInt iEl = 0; iEl < this->numNz(); iEl++)

Callers 1

calledOptimizeModelMethod · 0.80

Calls 2

analyseVectorValuesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected