Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::ViewOfAffineLinearExpressionProto Struct Reference

#include <constraint_violation.h>

Public Member Functions

 ViewOfAffineLinearExpressionProto (const LinearExpressionProto &proto)
void AppendVarTo (std::vector< int > &result) const

Public Attributes

int var = 0
int64_t coeff = 0
int64_t offset = 0

Detailed Description

This is more compact and faster to destroy than storing a LinearExpressionProto.

Definition at line 548 of file constraint_violation.h.

Constructor & Destructor Documentation

◆ ViewOfAffineLinearExpressionProto()

operations_research::sat::ViewOfAffineLinearExpressionProto::ViewOfAffineLinearExpressionProto ( const LinearExpressionProto & proto)
inlineexplicit

Definition at line 549 of file constraint_violation.h.

Member Function Documentation

◆ AppendVarTo()

void operations_research::sat::ViewOfAffineLinearExpressionProto::AppendVarTo ( std::vector< int > & result) const
inline

Definition at line 559 of file constraint_violation.h.

Member Data Documentation

◆ coeff

int64_t operations_research::sat::ViewOfAffineLinearExpressionProto::coeff = 0

Definition at line 564 of file constraint_violation.h.

◆ offset

int64_t operations_research::sat::ViewOfAffineLinearExpressionProto::offset = 0

Definition at line 565 of file constraint_violation.h.

◆ var

int operations_research::sat::ViewOfAffineLinearExpressionProto::var = 0

Definition at line 563 of file constraint_violation.h.


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