Java Reference
Java Reference
SumOfVariables
Detailed Description
A linear expression interface that can be parsed.
Definition at line 17 of file SumOfVariables.java.
Public Member Functions | |
| SumOfVariables (IntVar[] variables) | |
| int | numElements () |
| Returns the number of elements in the interface. More... | |
| IntVar | getVariable (int index) |
| Returns the ith variable. More... | |
| long | getCoefficient (int index) |
| Returns the ith coefficient. More... | |
Static Public Member Functions | |
| static LinearExpr | sum (IntVar[] variables) |
| Creates a sum expression. More... | |
| static LinearExpr | scalProd (IntVar[] variables, long[] coefficients) |
| Creates a scalar product. More... | |
| static LinearExpr | scalProd (IntVar[] variables, int[] coefficients) |
| Creates a scalar product. More... | |
| static LinearExpr | term (IntVar variable, long coefficient) |
| Creates a linear term (var * coefficient). More... | |
Constructor & Destructor Documentation
◆ SumOfVariables()
|
inline |
Definition at line 20 of file SumOfVariables.java.
Member Function Documentation
◆ getCoefficient()
|
inline |
Returns the ith coefficient.
Implements LinearExpr.
Definition at line 37 of file SumOfVariables.java.
◆ getVariable()
|
inline |
◆ numElements()
|
inline |
Returns the number of elements in the interface.
Implements LinearExpr.
Definition at line 25 of file SumOfVariables.java.
◆ scalProd() [1/2]
|
inlinestaticinherited |
Creates a scalar product.
Definition at line 38 of file LinearExpr.java.
◆ scalProd() [2/2]
|
inlinestaticinherited |
Creates a scalar product.
Definition at line 33 of file LinearExpr.java.
◆ sum()
|
inlinestaticinherited |
Creates a sum expression.
Definition at line 28 of file LinearExpr.java.
◆ term()
|
inlinestaticinherited |
Creates a linear term (var * coefficient).
Definition at line 47 of file LinearExpr.java.
The documentation for this class was generated from the following file: