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

Function interpretCallStatus

highs/lp_data/HighsStatus.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26HighsStatus interpretCallStatus(const HighsLogOptions log_options,
27 const HighsStatus call_status,
28 const HighsStatus from_return_status,
29 const std::string& message) {
30 HighsStatus to_return_status;
31 to_return_status = worseStatus(call_status, from_return_status);
32 if (call_status != HighsStatus::kOk)
33 highsLogDev(log_options, HighsLogType::kWarning,
34 "%s return of HighsStatus::%s\n", message.c_str(),
35 highsStatusToString(call_status).c_str());
36 return to_return_status;
37}
38
39HighsStatus worseStatus(const HighsStatus status0, const HighsStatus status1) {
40 HighsStatus return_status = HighsStatus::kError;

Callers 15

assessHessianFunction · 0.85
solveMethod · 0.85
solveMethod · 0.85
solveMethod · 0.85
writeOptionsMethod · 0.85
writeRunDataMethod · 0.85
writeInfoMethod · 0.85
passModelMethod · 0.85
passHessianMethod · 0.85
readModelMethod · 0.85
readBasisMethod · 0.85
writeLocalModelMethod · 0.85

Calls 4

worseStatusFunction · 0.85
highsLogDevFunction · 0.85
highsStatusToStringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected