|  | Google OR-Tools v9.14
    a fast and portable software suite for combinatorial optimization | 
Definition at line 99 of file model_builder_helper.h.
#include <model_builder_helper.h>
 
  
| Public Member Functions | |
| ~ExprFlattener () override=default | |
| void | AddVarCoeff (std::shared_ptr< Variable > var, double coeff) override | 
| double | Flatten (std::vector< std::shared_ptr< Variable > > *vars, std::vector< double > *coeffs) | 
| Public Member Functions inherited from operations_research::mb::ExprVisitor | |
| virtual | ~ExprVisitor ()=default | 
| void | AddToProcess (std::shared_ptr< LinearExpr > expr, double coeff) | 
| Expression visitors. | |
| void | AddConstant (double constant) | 
| void | Clear () | 
| Additional Inherited Members | |
| Protected Attributes inherited from operations_research::mb::ExprVisitor | |
| std::vector< std::pair< std::shared_ptr< LinearExpr >, double > > | to_process_ | 
| double | offset_ = 0 | 
| 
 | overridedefault | 
| 
 | overridevirtual | 
Implements operations_research::mb::ExprVisitor.
Definition at line 855 of file model_builder_helper.cc.
| double operations_research::mb::ExprFlattener::Flatten | ( | std::vector< std::shared_ptr< Variable > > * | vars, | 
| std::vector< double > * | coeffs ) | 
Definition at line 859 of file model_builder_helper.cc.