20 switch (problem_status) {
24 return "PRIMAL_INFEASIBLE";
26 return "DUAL_INFEASIBLE";
28 return "INFEASIBLE_OR_UNBOUNDED";
30 return "PRIMAL_UNBOUNDED";
32 return "DUAL_UNBOUNDED";
36 return "PRIMAL_FEASIBLE";
38 return "DUAL_FEASIBLE";
42 return "INVALID_PROBLEM";
48 LOG(DFATAL) <<
"Invalid ProblemStatus " <<
static_cast<int>(problem_status);
49 return "UNKNOWN ProblemStatus";
53 switch (variable_type) {
55 return "UNCONSTRAINED";
57 return "LOWER_BOUNDED";
59 return "UPPER_BOUNDED";
61 return "UPPER_AND_LOWER_BOUNDED";
63 return "FIXED_VARIABLE";
67 LOG(DFATAL) <<
"Invalid VariableType " <<
static_cast<int>(variable_type);
68 return "UNKNOWN VariableType";
76 return "AT_LOWER_BOUND";
78 return "AT_UPPER_BOUND";
86 LOG(DFATAL) <<
"Invalid VariableStatus " <<
static_cast<int>(status);
87 return "UNKNOWN VariableStatus";
95 return "AT_LOWER_BOUND";
97 return "AT_UPPER_BOUND";
105 LOG(DFATAL) <<
"Invalid ConstraintStatus " <<
static_cast<int>(status);
106 return "UNKNOWN ConstraintStatus";
124 LOG(DFATAL) <<
"Invalid VariableStatus " <<
static_cast<int>(status);
std::string GetProblemStatusString(ProblemStatus problem_status)
std::string GetConstraintStatusString(ConstraintStatus status)
ConstraintStatus VariableToConstraintStatus(VariableStatus status)
@ UPPER_AND_LOWER_BOUNDED
std::string GetVariableTypeString(VariableType variable_type)
@ INFEASIBLE_OR_UNBOUNDED
std::string GetVariableStatusString(VariableStatus status)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...