Java Reference
Java Reference
Detailed Description
A linear expression interface that can be parsed.
Definition at line 17 of file DoubleLinearExpr.java.
Public Member Functions | |
| int | numElements () |
| Returns the number of elements in the interface. More... | |
| int | getVariableIndex (int index) |
| Returns the ith variable. More... | |
| double | getCoefficient (int index) |
| Returns the ith coefficient. More... | |
| double | getOffset () |
| Returns the constant part of the expression. More... | |
| DoubleLinearExpr (IntVar[] variables, double[] coefficients, double offset) | |
| DoubleLinearExpr (Literal[] literals, double[] coefficients, double offset) | |
| DoubleLinearExpr (IntVar var, double coefficient, double offset) | |
| DoubleLinearExpr (Literal lit, double coefficient, double offset) | |
| DoubleLinearExpr (IntVar[] vars, double offset) | |
| DoubleLinearExpr (Literal[] literals, double offset) | |
Constructor & Destructor Documentation
◆ DoubleLinearExpr() [1/6]
| DoubleLinearExpr | ( | IntVar[] | variables, |
| double[] | coefficients, | ||
| double | offset | ||
| ) |
Definition at line 125 of file DoubleLinearExpr.java.
◆ DoubleLinearExpr() [2/6]
| DoubleLinearExpr | ( | Literal[] | literals, |
| double[] | coefficients, | ||
| double | offset | ||
| ) |
Definition at line 134 of file DoubleLinearExpr.java.
◆ DoubleLinearExpr() [3/6]
| DoubleLinearExpr | ( | IntVar | var, |
| double | coefficient, | ||
| double | offset | ||
| ) |
Definition at line 154 of file DoubleLinearExpr.java.
◆ DoubleLinearExpr() [4/6]
| DoubleLinearExpr | ( | Literal | lit, |
| double | coefficient, | ||
| double | offset | ||
| ) |
Definition at line 160 of file DoubleLinearExpr.java.
◆ DoubleLinearExpr() [5/6]
| DoubleLinearExpr | ( | IntVar[] | vars, |
| double | offset | ||
| ) |
Definition at line 172 of file DoubleLinearExpr.java.
◆ DoubleLinearExpr() [6/6]
| DoubleLinearExpr | ( | Literal[] | literals, |
| double | offset | ||
| ) |
Definition at line 184 of file DoubleLinearExpr.java.
Member Function Documentation
◆ getCoefficient()
| double getCoefficient | ( | int | index | ) |
Returns the ith coefficient.
Definition at line 113 of file DoubleLinearExpr.java.
◆ getOffset()
| double getOffset | ( | ) |
Returns the constant part of the expression.
Definition at line 121 of file DoubleLinearExpr.java.
◆ getVariableIndex()
| int getVariableIndex | ( | int | index | ) |
Returns the ith variable.
Definition at line 105 of file DoubleLinearExpr.java.
◆ numElements()
| int numElements | ( | ) |
Returns the number of elements in the interface.
Definition at line 100 of file DoubleLinearExpr.java.
The documentation for this class was generated from the following file: