14#ifndef OR_TOOLS_MATH_OPT_CPP_FORMATTERS_H_
15#define OR_TOOLS_MATH_OPT_CPP_FORMATTERS_H_
39 const double coeff = formatter.
coeff;
43 }
else if (coeff == -1.0) {
51 }
else if (coeff == -1.0) {
53 }
else if (std::isnan(coeff)) {
55 }
else if (coeff >= 0) {
74 const double constant = formatter.
constant;
77 }
else if (constant == 0) {
79 }
else if (std::isnan(constant)) {
81 }
else if (constant > 0) {
An object oriented wrapper for quadratic constraints in ModelStorage.
std::ostream & operator<<(std::ostream &ostr, const IndicatorConstraint &constraint)