Java Reference
Java Reference
LinearExpr.java
A linear expression interface that can be parsed.
Definition: SumOfVariables.java:17
long getCoefficient(int index)
Returns the ith coefficient.
A linear expression interface that can be parsed.
Definition: ScalProd.java:17
int numElements()
Returns the number of elements in the interface.
static LinearExpr term(IntVar variable, long coefficient)
Creates a linear term (var * coefficient).
Definition: LinearExpr.java:47
static LinearExpr scalProd(IntVar[] variables, long[] coefficients)
Creates a scalar product.
Definition: LinearExpr.java:33
static LinearExpr scalProd(IntVar[] variables, int[] coefficients)
Creates a scalar product.
Definition: LinearExpr.java:38
An integer variable.
Definition: java/com/google/ortools/sat/IntVar.java:21
A linear expression interface that can be parsed.
Definition: LinearExpr.java:17