| 8 | const double zero_ray_value_tolerance = 1e-14; |
| 9 | |
| 10 | void 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 | |
| 22 | bool checkRayDirection(const HighsInt dim, const vector<double>& ray_value, |
| 23 | const vector<double>& expected_ray_value) { |