Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
ConstantExpression (double offset) | |
LinearExpr | build () |
LinearArgument interface. | |
int | numElements () |
LinearExpr interface. | |
int | getVariableIndex (int index) |
double | getCoefficient (int index) |
double | getOffset () |
String | toString () |
ConstantExpression (double offset) | |
LinearExpr | build () |
LinearArgument interface. | |
int | numElements () |
LinearExpr interface. | |
int | getVariableIndex (int index) |
double | getCoefficient (int index) |
double | getOffset () |
String | toString () |
Public Member Functions inherited from com.google.ortools.modelbuilder.LinearExpr | |
Public Member Functions inherited from com.google.ortools.modelbuilder.LinearArgument |
Additional Inherited Members | |
Static Public Member Functions inherited from com.google.ortools.modelbuilder.LinearExpr | |
static LinearExprBuilder | newBuilder () |
static LinearExpr | constant (double value) |
static LinearExpr | term (LinearArgument expr, double coeff) |
static LinearExpr | affine (LinearArgument expr, double coeff, double offset) |
static LinearExpr | sum (LinearArgument[] exprs) |
static LinearExpr | weightedSum (LinearArgument[] exprs, double[] coeffs) |
static LinearExprBuilder | newBuilder () |
static LinearExpr | constant (double value) |
static LinearExpr | term (LinearArgument expr, double coeff) |
static LinearExpr | affine (LinearArgument expr, double coeff, double offset) |
static LinearExpr | sum (LinearArgument[] exprs) |
static LinearExpr | weightedSum (LinearArgument[] exprs, double[] coeffs) |
A specialized constant linear expression.
Definition at line 17 of file ConstantExpression.java.
com.google.ortools.modelbuilder.ConstantExpression.ConstantExpression | ( | double | offset | ) |
Definition at line 20 of file ConstantExpression.java.
com.google.ortools.modelbuilder.ConstantExpression.ConstantExpression | ( | double | offset | ) |
Definition at line 20 of file ConstantExpression.java.
LinearExpr com.google.ortools.modelbuilder.ConstantExpression.build | ( | ) |
LinearArgument interface.
Implements com.google.ortools.modelbuilder.LinearArgument.
Definition at line 26 of file ConstantExpression.java.
LinearExpr com.google.ortools.modelbuilder.ConstantExpression.build | ( | ) |
LinearArgument interface.
Implements com.google.ortools.modelbuilder.LinearArgument.
Definition at line 26 of file ConstantExpression.java.
double com.google.ortools.modelbuilder.ConstantExpression.getCoefficient | ( | int | index | ) |
Returns the ith coefficient.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 42 of file ConstantExpression.java.
double com.google.ortools.modelbuilder.ConstantExpression.getCoefficient | ( | int | index | ) |
Returns the ith coefficient.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 42 of file ConstantExpression.java.
double com.google.ortools.modelbuilder.ConstantExpression.getOffset | ( | ) |
Returns the constant part of the expression.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 47 of file ConstantExpression.java.
double com.google.ortools.modelbuilder.ConstantExpression.getOffset | ( | ) |
Returns the constant part of the expression.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 47 of file ConstantExpression.java.
int com.google.ortools.modelbuilder.ConstantExpression.getVariableIndex | ( | int | index | ) |
Returns the index of the ith variable.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 37 of file ConstantExpression.java.
int com.google.ortools.modelbuilder.ConstantExpression.getVariableIndex | ( | int | index | ) |
Returns the index of the ith variable.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 37 of file ConstantExpression.java.
int com.google.ortools.modelbuilder.ConstantExpression.numElements | ( | ) |
LinearExpr interface.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 32 of file ConstantExpression.java.
int com.google.ortools.modelbuilder.ConstantExpression.numElements | ( | ) |
LinearExpr interface.
Implements com.google.ortools.modelbuilder.LinearExpr.
Definition at line 32 of file ConstantExpression.java.
String com.google.ortools.modelbuilder.ConstantExpression.toString | ( | ) |
Definition at line 52 of file ConstantExpression.java.
String com.google.ortools.modelbuilder.ConstantExpression.toString | ( | ) |
Definition at line 52 of file ConstantExpression.java.