| 14 | #include <cassert> // For std::max |
| 15 | |
| 16 | HighsStatus debugDebugToHighsStatus(const HighsDebugStatus debug_status) { |
| 17 | switch (debug_status) { |
| 18 | case HighsDebugStatus::kNotChecked: |
| 19 | case HighsDebugStatus::kOk: |
| 20 | case HighsDebugStatus::kSmallError: |
| 21 | return HighsStatus::kOk; |
| 22 | case HighsDebugStatus::kWarning: |
| 23 | case HighsDebugStatus::kLargeError: |
| 24 | return HighsStatus::kWarning; |
| 25 | case HighsDebugStatus::kError: |
| 26 | case HighsDebugStatus::kExcessiveError: |
| 27 | case HighsDebugStatus::kLogicalError: |
| 28 | return HighsStatus::kError; |
| 29 | default: |
| 30 | return HighsStatus::kOk; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | HighsDebugStatus debugWorseStatus(const HighsDebugStatus status0, |
| 35 | const HighsDebugStatus status1) { |