Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
LinearConstraint (ModelBuilderHelper helper) | |
int | getIndex () |
ModelBuilderHelper | getHelper () |
double | getLowerBound () |
void | setLowerBound (double lb) |
double | getUpperBound () |
void | setUpperBound (double ub) |
String | getName () |
void | setName (String name) |
void | addTerm (Variable v, double coeff) |
void | setCoefficient (Variable v, double coeff) |
void | clearTerms () |
LinearConstraint | withName (String name) |
LinearConstraint (ModelBuilderHelper helper) | |
int | getIndex () |
ModelBuilderHelper | getHelper () |
double | getLowerBound () |
void | setLowerBound (double lb) |
double | getUpperBound () |
void | setUpperBound (double ub) |
String | getName () |
void | setName (String name) |
void | addTerm (Variable v, double coeff) |
void | setCoefficient (Variable v, double coeff) |
void | clearTerms () |
LinearConstraint | withName (String name) |
Wrapper around a linear constraint stored in the ModelBuilderHelper instance.
Definition at line 17 of file LinearConstraint.java.
com.google.ortools.modelbuilder.LinearConstraint.LinearConstraint | ( | ModelBuilderHelper | helper | ) |
Definition at line 18 of file LinearConstraint.java.
com.google.ortools.modelbuilder.LinearConstraint.LinearConstraint | ( | ModelBuilderHelper | helper | ) |
Definition at line 18 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.addTerm | ( | Variable | v, |
double | coeff ) |
Adds var * coeff to the constraint.
Definition at line 69 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.addTerm | ( | Variable | v, |
double | coeff ) |
Adds var * coeff to the constraint.
Definition at line 69 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.clearTerms | ( | ) |
Clear all terms.
Definition at line 79 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.clearTerms | ( | ) |
Clear all terms.
Definition at line 79 of file LinearConstraint.java.
ModelBuilderHelper com.google.ortools.modelbuilder.LinearConstraint.getHelper | ( | ) |
Returns the constraint builder.
Definition at line 34 of file LinearConstraint.java.
ModelBuilderHelper com.google.ortools.modelbuilder.LinearConstraint.getHelper | ( | ) |
Returns the constraint builder.
Definition at line 34 of file LinearConstraint.java.
int com.google.ortools.modelbuilder.LinearConstraint.getIndex | ( | ) |
Returns the index of the constraint in the model.
Definition at line 29 of file LinearConstraint.java.
int com.google.ortools.modelbuilder.LinearConstraint.getIndex | ( | ) |
Returns the index of the constraint in the model.
Definition at line 29 of file LinearConstraint.java.
double com.google.ortools.modelbuilder.LinearConstraint.getLowerBound | ( | ) |
Returns the lower bound of the constraint.
Definition at line 39 of file LinearConstraint.java.
double com.google.ortools.modelbuilder.LinearConstraint.getLowerBound | ( | ) |
Returns the lower bound of the constraint.
Definition at line 39 of file LinearConstraint.java.
String com.google.ortools.modelbuilder.LinearConstraint.getName | ( | ) |
Returns the name of the constraint given upon creation.
Definition at line 59 of file LinearConstraint.java.
String com.google.ortools.modelbuilder.LinearConstraint.getName | ( | ) |
Returns the name of the constraint given upon creation.
Definition at line 59 of file LinearConstraint.java.
double com.google.ortools.modelbuilder.LinearConstraint.getUpperBound | ( | ) |
Returns the upper bound of the constraint.
Definition at line 49 of file LinearConstraint.java.
double com.google.ortools.modelbuilder.LinearConstraint.getUpperBound | ( | ) |
Returns the upper bound of the constraint.
Definition at line 49 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setCoefficient | ( | Variable | v, |
double | coeff ) |
Sets the coefficient of v to coeff, adding or removing a term if needed.
Definition at line 74 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setCoefficient | ( | Variable | v, |
double | coeff ) |
Sets the coefficient of v to coeff, adding or removing a term if needed.
Definition at line 74 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setLowerBound | ( | double | lb | ) |
Returns the lower bound of the constraint.
Definition at line 44 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setLowerBound | ( | double | lb | ) |
Returns the lower bound of the constraint.
Definition at line 44 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setName | ( | String | name | ) |
Sets the name of the constraint.
Definition at line 64 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setName | ( | String | name | ) |
Sets the name of the constraint.
Definition at line 64 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setUpperBound | ( | double | ub | ) |
Returns the upper bound of the constraint.
Definition at line 54 of file LinearConstraint.java.
void com.google.ortools.modelbuilder.LinearConstraint.setUpperBound | ( | double | ub | ) |
Returns the upper bound of the constraint.
Definition at line 54 of file LinearConstraint.java.
LinearConstraint com.google.ortools.modelbuilder.LinearConstraint.withName | ( | String | name | ) |
Inline setter
Definition at line 84 of file LinearConstraint.java.
LinearConstraint com.google.ortools.modelbuilder.LinearConstraint.withName | ( | String | name | ) |
Inline setter
Definition at line 84 of file LinearConstraint.java.