Package | Description |
---|---|
com.google.ortools.sat |
Modifier and Type | Method and Description |
---|---|
static DoubleLinearExpr |
DoubleLinearExpr.affine(IntVar variable,
double coefficient,
double offset)
Creates an affine expression (var * coefficient + offset).
|
static DoubleLinearExpr |
DoubleLinearExpr.affine(Literal lit,
double coefficient,
double offset)
Creates an affine expression (lit * coefficient + offset).
|
static DoubleLinearExpr |
DoubleLinearExpr.constant(double value)
Creates a constant expression.
|
static DoubleLinearExpr |
DoubleLinearExpr.sum(IntVar[] variables)
Creates a sum expression.
|
static DoubleLinearExpr |
DoubleLinearExpr.sum(Literal[] literals)
Creates a sum expression.
|
static DoubleLinearExpr |
DoubleLinearExpr.sumWithOffset(IntVar[] variables,
double offset)
Creates a sum expression with a double offset.
|
static DoubleLinearExpr |
DoubleLinearExpr.sumWithOffset(Literal[] literals,
double offset)
Creates a sum expression with a double offset.
|
static DoubleLinearExpr |
DoubleLinearExpr.term(IntVar variable,
double coefficient)
Creates a linear term (var * coefficient).
|
static DoubleLinearExpr |
DoubleLinearExpr.term(Literal lit,
double coefficient)
Creates a linear term (lit * coefficient).
|
static DoubleLinearExpr |
DoubleLinearExpr.weightedSum(IntVar[] variables,
double[] coefficients)
Creates a scalar product.
|
static DoubleLinearExpr |
DoubleLinearExpr.weightedSum(Literal[] literals,
double[] coefficients)
Creates a scalar product.
|
static DoubleLinearExpr |
DoubleLinearExpr.weightedSumWithOffset(IntVar[] variables,
double[] coefficients,
double offset)
Creates a scalar product.
|
static DoubleLinearExpr |
DoubleLinearExpr.weightedSumWithOffset(Literal[] literals,
double[] coefficients,
double offset)
Creates a scalar product with a double offset.
|
Modifier and Type | Method and Description |
---|---|
void |
CpModel.maximize(DoubleLinearExpr expr)
Adds a maximization objective of a linear expression.
|
void |
CpModel.minimize(DoubleLinearExpr expr)
Adds a minimization objective of a linear expression.
|
Copyright © 2025. All rights reserved.