Return a string representation of HighsBasisStatus
| 1380 | |
| 1381 | // Return a string representation of HighsBasisStatus |
| 1382 | std::string utilBasisStatusToString(const HighsBasisStatus basis_status) { |
| 1383 | switch (basis_status) { |
| 1384 | case HighsBasisStatus::kLower: |
| 1385 | return "At lower/fixed bound"; |
| 1386 | break; |
| 1387 | case HighsBasisStatus::kBasic: |
| 1388 | return "Basic"; |
| 1389 | break; |
| 1390 | case HighsBasisStatus::kUpper: |
| 1391 | return "At upper bound"; |
| 1392 | break; |
| 1393 | case HighsBasisStatus::kZero: |
| 1394 | return "Free at zero"; |
| 1395 | break; |
| 1396 | case HighsBasisStatus::kNonbasic: |
| 1397 | return "Nonbasic"; |
| 1398 | break; |
| 1399 | default: |
| 1400 | assert(1 == 0); |
| 1401 | return "Unrecognised solution status"; |
| 1402 | } |
| 1403 | } |
| 1404 | |
| 1405 | // Return a string representation of basis validity |
| 1406 | std::string utilBasisValidityToString(const HighsInt basis_validity) { |
no outgoing calls