| 8 | enum class ProblemType{LINEAR, QUADRATIC, NONLINEAR}; |
| 9 | |
| 10 | inline std::string to_string(ProblemType problem_type) { |
| 11 | if (problem_type == ProblemType::LINEAR) { |
| 12 | return "LP"; |
| 13 | } |
| 14 | else if (problem_type == ProblemType::QUADRATIC) { |
| 15 | return "QP"; |
| 16 | } |
| 17 | else { |
| 18 | return "NLP"; |
| 19 | } |
| 20 | } |
| 21 | } // namespace |
| 22 | |
| 23 | #endif // UNO_PROBLEMTYPE_H |
no outgoing calls
no test coverage detected