ORTools::Sat::LinearExpression
LinearExpression class provides an expression of variables and fixed coefficients The expression is used as input to constraints that accept linear expressions
Constructors
Class methods
Instance methods
!=(other : Expressible)
Source+(other : Expressible)
Source-(other : Expressible)
Source<(other : Expressible)
Source<=(other : Expressible)
Source==(other : Expressible)
Source>(other : Expressible)
Source>=(other : Expressible)
Sourcecoefficients
Sourceconstant
Sourcenormalize
Combines duplicate variables by summing their coefficients and drops any
term whose coefficient is zero; the constant is preserved. Returns a new,
equivalent expression in which each variable appears at most once. This
keeps expressions like x + x from emitting a proto with repeated
variable references.
proto
Sourceto_lexpr
Sourcevariables
Source