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

Function reportRay

check/TestRays.cpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const double zero_ray_value_tolerance = 1e-14;
9
10void reportRay(std::string message, HighsInt dim, double* computed,
11 double* expected) {
12 printf("%s computed", message.c_str());
13 if (expected) printf(" expected");
14 printf("\n");
15 for (HighsInt iX = 0; iX < dim; iX++) {
16 printf("%3" HIGHSINT_FORMAT " %11.4g", iX, computed[iX]);
17 if (expected) printf(" %11.4g", expected[iX]);
18 printf("\n");
19 }
20}
21
22bool checkRayDirection(const HighsInt dim, const vector<double>& ray_value,
23 const vector<double>& expected_ray_value) {

Callers 1

TestRays.cppFile · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected