Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Holds a linear expression: sum (ai * xi) + b
.
More...
Static Public Member Functions | |
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 linear expression: sum (ai * xi) + b
.
Definition at line 96 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates expr * coeff + offset
.
Definition at line 123 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates a constant expression.
Definition at line 133 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates a builder class for linear expression.
Definition at line 139 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 204 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 194 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 179 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 174 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 154 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 149 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 144 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 169 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 184 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 164 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 159 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 224 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 219 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 234 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 199 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 189 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 214 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 209 of file ModelBuilderExpr.cs.
|
inlinestatic |
Definition at line 229 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates Sum(exprs)
.
Definition at line 99 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates expr * coeff
.
Definition at line 117 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates Sum(exprs[i] * coeffs[i])
.
Definition at line 111 of file ModelBuilderExpr.cs.
|
inlinestatic |
Creates Sum(exprs[i] * coeffs[i])
.
Definition at line 105 of file ModelBuilderExpr.cs.