Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
int | getIndex () |
LinearExpr | build () |
LinearArgument interface. | |
double | getLowerBound () |
void | setLowerBound (double lowerBound) |
double | getUpperBound () |
void | setUpperBound (double upperBound) |
boolean | getIntegrality () |
void | setIntegrality (boolean isIntegral) |
double | getObjectiveCoefficient () |
void | setObjectiveCoefficient (double objectiveCoefficient) |
String | getName () |
void | setName (String name) |
String | toString () |
int | getIndex () |
LinearExpr | build () |
LinearArgument interface. | |
double | getLowerBound () |
void | setLowerBound (double lowerBound) |
double | getUpperBound () |
void | setUpperBound (double upperBound) |
boolean | getIntegrality () |
void | setIntegrality (boolean isIntegral) |
double | getObjectiveCoefficient () |
void | setObjectiveCoefficient (double objectiveCoefficient) |
String | getName () |
void | setName (String name) |
String | toString () |
Public Member Functions inherited from com.google.ortools.modelbuilder.LinearArgument |
Protected Attributes | |
final ModelBuilderHelper | helper |
final int | index |
An integer variable.
Definition at line 17 of file Variable.java.
LinearExpr com.google.ortools.modelbuilder.Variable.build | ( | ) |
LinearArgument interface.
Implements com.google.ortools.modelbuilder.LinearArgument.
Definition at line 39 of file Variable.java.
LinearExpr com.google.ortools.modelbuilder.Variable.build | ( | ) |
LinearArgument interface.
Implements com.google.ortools.modelbuilder.LinearArgument.
Definition at line 39 of file Variable.java.
int com.google.ortools.modelbuilder.Variable.getIndex | ( | ) |
Returns the index of the variable in the underlying ModelBuilderHelper.
Definition at line 33 of file Variable.java.
int com.google.ortools.modelbuilder.Variable.getIndex | ( | ) |
Returns the index of the variable in the underlying ModelBuilderHelper.
Definition at line 33 of file Variable.java.
boolean com.google.ortools.modelbuilder.Variable.getIntegrality | ( | ) |
Returns whether the variable is integral.
Definition at line 64 of file Variable.java.
boolean com.google.ortools.modelbuilder.Variable.getIntegrality | ( | ) |
Returns whether the variable is integral.
Definition at line 64 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getLowerBound | ( | ) |
Returns the lower bound of the variable.
Definition at line 44 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getLowerBound | ( | ) |
Returns the lower bound of the variable.
Definition at line 44 of file Variable.java.
String com.google.ortools.modelbuilder.Variable.getName | ( | ) |
Returns the name of the variable given upon creation.
Definition at line 84 of file Variable.java.
String com.google.ortools.modelbuilder.Variable.getName | ( | ) |
Returns the name of the variable given upon creation.
Definition at line 84 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getObjectiveCoefficient | ( | ) |
Returns the objective coefficient of the variable.
Definition at line 74 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getObjectiveCoefficient | ( | ) |
Returns the objective coefficient of the variable.
Definition at line 74 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getUpperBound | ( | ) |
Returns the upper bound of the variable.
Definition at line 54 of file Variable.java.
double com.google.ortools.modelbuilder.Variable.getUpperBound | ( | ) |
Returns the upper bound of the variable.
Definition at line 54 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setIntegrality | ( | boolean | isIntegral | ) |
Sets the integrality of the variable.
Definition at line 69 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setIntegrality | ( | boolean | isIntegral | ) |
Sets the integrality of the variable.
Definition at line 69 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setLowerBound | ( | double | lowerBound | ) |
Sets the lower bound of the variable.
Definition at line 49 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setLowerBound | ( | double | lowerBound | ) |
Sets the lower bound of the variable.
Definition at line 49 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setName | ( | String | name | ) |
Definition at line 88 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setName | ( | String | name | ) |
Definition at line 88 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setObjectiveCoefficient | ( | double | objectiveCoefficient | ) |
Sets the objective coefficient of the variable in the objective.
Definition at line 79 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setObjectiveCoefficient | ( | double | objectiveCoefficient | ) |
Sets the objective coefficient of the variable in the objective.
Definition at line 79 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setUpperBound | ( | double | upperBound | ) |
Sets the upper bound of the variable.
Definition at line 59 of file Variable.java.
void com.google.ortools.modelbuilder.Variable.setUpperBound | ( | double | upperBound | ) |
Sets the upper bound of the variable.
Definition at line 59 of file Variable.java.
String com.google.ortools.modelbuilder.Variable.toString | ( | ) |
Definition at line 93 of file Variable.java.
String com.google.ortools.modelbuilder.Variable.toString | ( | ) |
Definition at line 93 of file Variable.java.
|
protected |
Definition at line 105 of file Variable.java.
|
protected |
Definition at line 106 of file Variable.java.