Package | Description |
---|---|
com.google.ortools.sat |
Modifier and Type | Class and Description |
---|---|
class |
AffineExpression
A specialized linear expression: a * x + b
|
class |
ConstantExpression
A specialized constant linear expression.
|
class |
WeightedSumExpression
A specialized linear expression: sum(ai * xi) + b.
|
Modifier and Type | Method and Description |
---|---|
static LinearExpr |
LinearExpr.affine(LinearArgument expr,
long coeff,
long offset)
Shortcut for newBuilder().addTerm(expr, coeff).add(offset).build()
|
LinearExpr |
LinearArgument.build()
Builds a linear expression.
|
LinearExpr |
WeightedSumExpression.build() |
LinearExpr |
IntVar.build() |
LinearExpr |
NotBoolVar.build() |
LinearExpr |
LinearExprBuilder.build() |
LinearExpr |
ConstantExpression.build() |
LinearExpr |
AffineExpression.build() |
static LinearExpr |
LinearExpr.constant(long value)
Shortcut for newBuilder().add(value).build()
|
LinearExpr |
IntervalVar.getEndExpr()
Returns the end expression.
|
LinearExpr |
IntervalVar.getSizeExpr()
Returns the size expression.
|
LinearExpr |
IntervalVar.getStartExpr()
Returns the start expression.
|
static LinearExpr |
LinearExpr.rebuildFromLinearExpressionProto(LinearExpressionProto proto) |
static LinearExpr |
LinearExpr.sum(LinearArgument[] exprs)
Shortcut for newBuilder().addSum(exprs).build()
|
static LinearExpr |
LinearExpr.term(LinearArgument expr,
long coeff)
Shortcut for newBuilder().addTerm(expr, coeff).build()
|
static LinearExpr |
LinearExpr.weightedSum(LinearArgument[] exprs,
long[] coeffs)
Shortcut for newBuilder().addWeightedSum(exprs, coeffs).build()
|
Modifier and Type | Method and Description |
---|---|
ReservoirConstraint |
ReservoirConstraint.addOptionalEvent(LinearExpr time,
long levelChange,
Literal isActive)
Adds an optional event
If `isActive` is true, It will increase the used capacity by `levelChange` at time `time`.
|
Copyright © 2025. All rights reserved.