![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Similar to AffineExpression, but with a zero constant. If coeff is zero, then this is always zero and var is ignored.
Definition at line 476 of file precedences.h.
#include <precedences.h>
Public Member Functions | |
LinearTerm ()=default | |
LinearTerm (IntegerVariable v, IntegerValue c) | |
void | MakeCoeffPositive () |
bool | operator== (const LinearTerm &other) const |
Public Attributes | |
IntegerVariable | var = kNoIntegerVariable |
IntegerValue | coeff = IntegerValue(0) |
|
default |
|
inline |
Definition at line 478 of file precedences.h.
|
inline |
Definition at line 480 of file precedences.h.
|
inline |
Definition at line 487 of file precedences.h.
IntegerValue operations_research::sat::LinearTerm::coeff = IntegerValue(0) |
Definition at line 492 of file precedences.h.
IntegerVariable operations_research::sat::LinearTerm::var = kNoIntegerVariable |
Definition at line 491 of file precedences.h.