37 {.allow_positive_infinity = false, .allow_negative_infinity = false}))
38 <<
"bad linear term in quadratic constraint";
40 CheckIdsSubset(constraint.linear_terms().ids(), variable_universe))
41 <<
"bad linear term ID in quadratic constraint";
46 <<
"bad quadratic term in quadratic constraint";
48 variable_universe, variable_universe))
49 <<
"bad quadratic term ID in quadratic constraint";
53 const double lb = constraint.lower_bound();
54 const double ub = constraint.upper_bound();
56 <<
"bad quadratic constraint lower bound";
58 <<
"bad quadratic constraint upper bound";
61 <<
"Quadratic constraint bounds are inverted, rendering model "
62 "trivially infeasible: lb = "
63 << lb <<
" > " << ub <<
" = ub";
67 return absl::OkStatus();