Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::LeadingCoefficientFormatter Struct Reference

#include <formatters.h>

Public Member Functions

 LeadingCoefficientFormatter (const double coeff, const bool is_first)
 

Public Attributes

const double coeff
 
const bool is_first
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LeadingCoefficientFormatter()

operations_research::math_opt::LeadingCoefficientFormatter::LeadingCoefficientFormatter ( const double coeff,
const bool is_first )
inline

Definition at line 31 of file formatters.h.

Member Data Documentation

◆ coeff

const double operations_research::math_opt::LeadingCoefficientFormatter::coeff

Definition at line 33 of file formatters.h.

◆ is_first

const bool operations_research::math_opt::LeadingCoefficientFormatter::is_first

Definition at line 34 of file formatters.h.


The documentation for this struct was generated from the following file: