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

Function okValueDifference

check/TestQpSolver.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25bool okValueDifference(const double& v_test, const double& v_true) {
26 double difference = fabs(v_test - v_true) / std::max(1.0, fabs(v_true));
27 return difference < double_equal_tolerance;
28}
29
30void testPrimalDualObjective(Highs& h,
31 const double required_objective_function_value) {

Callers 2

testPrimalDualObjectiveFunction · 0.85
TestQpSolver.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected