|
static LinearExpr | Sum (IEnumerable< LinearExpr > exprs) |
| Creates Sum(exprs) .
|
|
static LinearExpr | WeightedSum (IEnumerable< LinearExpr > exprs, IEnumerable< int > coeffs) |
| Creates Sum(exprs[i] * coeffs[i]) .
|
|
static LinearExpr | WeightedSum (IEnumerable< LinearExpr > exprs, IEnumerable< double > coeffs) |
| Creates Sum(exprs[i] * coeffs[i]) .
|
|
static LinearExpr | Term (LinearExpr expr, double coeff) |
| Creates expr * coeff .
|
|
static LinearExpr | Affine (LinearExpr expr, double coeff, double offset) |
| Creates expr * coeff + offset .
|
|
static LinearExpr | Constant (double value) |
| Creates a constant expression.
|
|
static LinearExprBuilder | NewBuilder (int sizeHint=2) |
| Creates a builder class for linear expression.
|
|
static LinearExpr | operator+ (LinearExpr a, LinearExpr b) |
|
static LinearExpr | operator+ (LinearExpr a, double v) |
|
static LinearExpr | operator+ (double v, LinearExpr a) |
|
static LinearExpr | operator- (LinearExpr a, LinearExpr b) |
|
static LinearExpr | operator- (LinearExpr a, double v) |
|
static LinearExpr | operator- (double v, LinearExpr a) |
|
static LinearExpr | operator* (LinearExpr a, double v) |
|
static LinearExpr | operator* (double v, LinearExpr a) |
|
static LinearExpr | operator- (LinearExpr a) |
|
static BoundedLinearExpression | operator== (LinearExpr a, LinearExpr b) |
|
static BoundedLinearExpression | operator!= (LinearExpr a, LinearExpr b) |
|
static BoundedLinearExpression | operator== (LinearExpr a, double v) |
|
static BoundedLinearExpression | operator!= (LinearExpr a, double v) |
|
static BoundedLinearExpression | operator>= (LinearExpr a, double v) |
|
static BoundedLinearExpression | operator>= (double v, LinearExpr a) |
|
static BoundedLinearExpression | operator<= (LinearExpr a, double v) |
|
static BoundedLinearExpression | operator<= (double v, LinearExpr a) |
|
static BoundedLinearExpression | operator>= (LinearExpr a, LinearExpr b) |
|
static BoundedLinearExpression | operator<= (LinearExpr a, LinearExpr b) |
|
Holds a variable.
This class must be constructed from the CpModel class.
Definition at line 483 of file ModelBuilderExpr.cs.