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

Function highsRelativeDifference

highs/util/HighsUtils.cpp:301–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301double highsRelativeDifference(const double v0, const double v1) {
302 return fabs(v0 - v1) / std::max(v0, std::max(v1, 1.0));
303}
304
305void analyseVectorValues(const HighsLogOptions* log_options,
306 const std::string& message, HighsInt vecDim,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected