Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <formatters.h>
Public Member Functions | |
LeadingCoefficientFormatter (const double coeff, const bool is_first) | |
Public Attributes | |
const double | coeff |
const bool | is_first |
Streaming formatter for a coefficient of a linear/quadratic term, along with any leading "+"/"-"'s to connect it with preceding terms in a sum, and potentially a "*" postfix. The is_first
parameter specifies if the term is the first appearing in the sum, in which case the handling of the +/- connectors is different.
Definition at line 30 of file formatters.h.
|
inline |
Definition at line 31 of file formatters.h.
const double operations_research::math_opt::LeadingCoefficientFormatter::coeff |
Definition at line 33 of file formatters.h.
const bool operations_research::math_opt::LeadingCoefficientFormatter::is_first |
Definition at line 34 of file formatters.h.