![]()  | 
  
    Google OR-Tools v9.14
    
   a fast and portable software suite for combinatorial optimization 
   | 
 
Represents a linear expression in "raw ID" form.
The data storage is not interesting, this struct exists to provide helpers that go to/from the proto representation (via member functions) and the C++ model representations (via raw functions in constraints/util/model_util.h).
Definition at line 29 of file linear_expression_data.h.
#include <linear_expression_data.h>
Public Member Functions | |
| LinearExpressionProto | Proto () const | 
| Inline implementations.   | |
Static Public Member Functions | |
| static LinearExpressionData | FromProto (const LinearExpressionProto &expr_proto) | 
Public Attributes | |
| SparseCoefficientMap | coeffs | 
| double | offset = 0.0 | 
      
  | 
  inlinestatic | 
This method assumes that expr_proto is in a valid state; see the inline comments for LinearExpressionProto for details.
Definition at line 56 of file linear_expression_data.h.
      
  | 
  inline | 
Inline implementations.
Definition at line 41 of file linear_expression_data.h.
| SparseCoefficientMap operations_research::math_opt::LinearExpressionData::coeffs | 
Definition at line 36 of file linear_expression_data.h.
| double operations_research::math_opt::LinearExpressionData::offset = 0.0 | 
Definition at line 37 of file linear_expression_data.h.