Reference
C++
Python
DotNET
Java Documentation
Java Reference
LinearExpr.java
Go to the documentation of this file.
A linear expression interface that can be parsed.
Definition: LinearExpr.java:17
static LinearExpr scalProd(IntVar[] variables, long[] coefficients)
Creates a scalar product.
Definition: LinearExpr.java:33
int numElements()
Returns the number of elements in the interface.
static LinearExpr scalProd(IntVar[] variables, int[] coefficients)
Creates a scalar product.
Definition: LinearExpr.java:38
long getCoefficient(int index)
Returns the ith coefficient.