| 10 | #include <cassert> |
| 11 | |
| 12 | std::string highsStatusToString(HighsStatus status) { |
| 13 | switch (status) { |
| 14 | case HighsStatus::kOk: |
| 15 | return "OK"; |
| 16 | case HighsStatus::kWarning: |
| 17 | return "Warning"; |
| 18 | case HighsStatus::kError: |
| 19 | return "Error"; |
| 20 | default: |
| 21 | assert(1 == 0); |
| 22 | return "Unrecognised HiGHS status"; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | HighsStatus interpretCallStatus(const HighsLogOptions log_options, |
| 27 | const HighsStatus call_status, |
no outgoing calls