Java Reference
Java Reference
Variable.java
Go to the documentation of this file.
A specialized linear expression: a * x + b.
Definition: modelbuilder/AffineExpression.java:17
final ModelBuilderHelper helper
Definition: Variable.java:105
double getObjectiveCoefficient()
Returns the objective coefficient of the variable.
Definition: Variable.java:74
int getIndex()
Returns the index of the variable in the underlying ModelBuilderHelper.
Definition: Variable.java:33
void setIntegrality(boolean isIntegral)
Sets the integrality of the variable.
Definition: Variable.java:69
void setUpperBound(double upperBound)
Sets the upper bound of the variable.
Definition: Variable.java:59
void setObjectiveCoefficient(double objectiveCoefficient)
Sets the objective coefficient of the variable in the objective.
Definition: Variable.java:79
void setName(String name)
Definition: Variable.java:88
void setLowerBound(double lowerBound)
Sets the lower bound of the variable.
Definition: Variable.java:49
A object that can build a LinearExpr object.
Definition: modelbuilder/LinearArgument.java:21
A linear expression (sum (ai * xi) + b).
Definition: modelbuilder/LinearExpr.java:17