Java Reference
Java Reference
LinearConstraint.java
Go to the documentation of this file.
Wrapper around a linear constraint stored in the ModelBuilderHelper instance.
Definition: LinearConstraint.java:17
void addTerm(Variable var, double coeff)
Definition: LinearConstraint.java:64
void setUpperBound(double ub)
Returns the upper bound of the variable.
Definition: LinearConstraint.java:49
LinearConstraint(ModelBuilderHelper helper)
Definition: LinearConstraint.java:18
String getName()
Returns the name of the variable given upon creation.
Definition: LinearConstraint.java:54
void setLowerBound(double lb)
Returns the lower bound of the variable.
Definition: LinearConstraint.java:39
void setName(String name)
Definition: LinearConstraint.java:59
int getIndex()
Returns the index of the variable in the underlying ModelBuilderHelper.
Definition: Variable.java:33