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

Method getValueScale

highs/simplex/HEkk.cpp:4262–4269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4260}
4261
4262double HEkk::getValueScale(const HighsInt count,
4263 const vector<double>& value) const {
4264 if (count <= 0) return 1;
4265 double max_abs_value = 0;
4266 for (HighsInt iX = 0; iX < count; iX++)
4267 max_abs_value = std::max(fabs(value[iX]), max_abs_value);
4268 return nearestPowerOfTwoScale(max_abs_value);
4269}
4270
4271double HEkk::getMaxAbsRowValue(HighsInt row) {
4272 if (!status_.has_ar_matrix) initialisePartitionedRowwiseMatrix();

Callers 1

chooseColumnMethod · 0.80

Calls 1

nearestPowerOfTwoScaleFunction · 0.85

Tested by

no test coverage detected