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

Function worseStatus

highs/lp_data/HighsStatus.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39HighsStatus worseStatus(const HighsStatus status0, const HighsStatus status1) {
40 HighsStatus return_status = HighsStatus::kError;
41 if (status0 == HighsStatus::kError || status1 == HighsStatus::kError)
42 return_status = HighsStatus::kError;
43 else if (status0 == HighsStatus::kWarning || status1 == HighsStatus::kWarning)
44 return_status = HighsStatus::kWarning;
45 else
46 return_status = HighsStatus::kOk;
47 return return_status;
48}

Callers 1

interpretCallStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected