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

Function report

check/TestCrossover.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void report(const std::string message, const HighsLp& lp,
99 const HighsSolution& solution, const HighsBasis& basis) {
100 if (!dev_run) return;
101 double objective = lp.offset_;
102 printf("Solution: %s\n Ix Value Status\n", message.c_str());
103 for (HighsInt iCol = 0; iCol < lp.num_col_; iCol++) {
104 const double value = solution.col_value[iCol];
105 const std::string status =
106 basis.valid ? utilBasisStatusToString(basis.col_status[iCol]) : "";
107 objective += value * lp.col_cost_[iCol];
108 printf("%4d %11.4g %s\n", (int)iCol, value, status.c_str());
109 }
110 printf(" Obj %11.4g\n", objective);
111}

Callers 2

presolveMethod · 0.85
test_crossoverFunction · 0.85

Calls 2

utilBasisStatusToStringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected