18#include "absl/log/log.h"
24 switch (problem_status) {
28 return "PRIMAL_INFEASIBLE";
30 return "DUAL_INFEASIBLE";
32 return "INFEASIBLE_OR_UNBOUNDED";
34 return "PRIMAL_UNBOUNDED";
36 return "DUAL_UNBOUNDED";
40 return "PRIMAL_FEASIBLE";
42 return "DUAL_FEASIBLE";
46 return "INVALID_PROBLEM";
52 LOG(DFATAL) <<
"Invalid ProblemStatus " <<
static_cast<int>(problem_status);
53 return "UNKNOWN ProblemStatus";
57 switch (variable_type) {
59 return "UNCONSTRAINED";
61 return "LOWER_BOUNDED";
63 return "UPPER_BOUNDED";
65 return "UPPER_AND_LOWER_BOUNDED";
67 return "FIXED_VARIABLE";
71 LOG(DFATAL) <<
"Invalid VariableType " <<
static_cast<int>(variable_type);
72 return "UNKNOWN VariableType";
80 return "AT_LOWER_BOUND";
82 return "AT_UPPER_BOUND";
90 LOG(DFATAL) <<
"Invalid VariableStatus " <<
static_cast<int>(status);
91 return "UNKNOWN VariableStatus";
99 return "AT_LOWER_BOUND";
101 return "AT_UPPER_BOUND";
103 return "FIXED_VALUE";
109 LOG(DFATAL) <<
"Invalid ConstraintStatus " <<
static_cast<int>(status);
110 return "UNKNOWN ConstraintStatus";
128 LOG(DFATAL) <<
"Invalid VariableStatus " <<
static_cast<int>(status);
std::string GetVariableTypeString(VariableType variable_type)
std::string GetVariableStatusString(VariableStatus status)
@ UPPER_AND_LOWER_BOUNDED
std::string GetConstraintStatusString(ConstraintStatus status)
@ INFEASIBLE_OR_UNBOUNDED
ConstraintStatus VariableToConstraintStatus(VariableStatus status)
std::string GetProblemStatusString(ProblemStatus problem_status)