MCPcopy Create free account
hub / github.com/cvanaret/Uno / to_string

Function to_string

uno/optimization/ProblemType.hpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

solveMethod · 0.50
current_versionMethod · 0.50
print_non_defaultMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected