Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Wrapper around a linear constraint stored in the ModelBuilderHelper instance.
Definition at line 17 of file EnforcedLinearConstraint.java.
com.google.ortools.modelbuilder.EnforcedLinearConstraint.EnforcedLinearConstraint | ( | ModelBuilderHelper | helper | ) |
Definition at line 18 of file EnforcedLinearConstraint.java.
com.google.ortools.modelbuilder.EnforcedLinearConstraint.EnforcedLinearConstraint | ( | ModelBuilderHelper | helper | ) |
Definition at line 18 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.addTerm | ( | Variable | v, |
double | coeff ) |
Adds var * coeff to the constraint.
Definition at line 73 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.addTerm | ( | Variable | v, |
double | coeff ) |
Adds var * coeff to the constraint.
Definition at line 73 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.clearTerms | ( | ) |
Clear all terms.
Definition at line 83 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.clearTerms | ( | ) |
Clear all terms.
Definition at line 83 of file EnforcedLinearConstraint.java.
ModelBuilderHelper com.google.ortools.modelbuilder.EnforcedLinearConstraint.getHelper | ( | ) |
Returns the constraint builder.
Definition at line 38 of file EnforcedLinearConstraint.java.
ModelBuilderHelper com.google.ortools.modelbuilder.EnforcedLinearConstraint.getHelper | ( | ) |
Returns the constraint builder.
Definition at line 38 of file EnforcedLinearConstraint.java.
int com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndex | ( | ) |
Returns the index of the constraint in the model.
Definition at line 33 of file EnforcedLinearConstraint.java.
int com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndex | ( | ) |
Returns the index of the constraint in the model.
Definition at line 33 of file EnforcedLinearConstraint.java.
boolean com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndicatorValue | ( | ) |
Returns the indicator value of the constraint.
Definition at line 98 of file EnforcedLinearConstraint.java.
boolean com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndicatorValue | ( | ) |
Returns the indicator value of the constraint.
Definition at line 98 of file EnforcedLinearConstraint.java.
Variable com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndicatorVariable | ( | ) |
Returns the indicator variable of the constraint/
Definition at line 88 of file EnforcedLinearConstraint.java.
Variable com.google.ortools.modelbuilder.EnforcedLinearConstraint.getIndicatorVariable | ( | ) |
Returns the indicator variable of the constraint/
Definition at line 88 of file EnforcedLinearConstraint.java.
double com.google.ortools.modelbuilder.EnforcedLinearConstraint.getLowerBound | ( | ) |
Returns the lower bound of the constraint.
Definition at line 43 of file EnforcedLinearConstraint.java.
double com.google.ortools.modelbuilder.EnforcedLinearConstraint.getLowerBound | ( | ) |
Returns the lower bound of the constraint.
Definition at line 43 of file EnforcedLinearConstraint.java.
String com.google.ortools.modelbuilder.EnforcedLinearConstraint.getName | ( | ) |
Returns the name of the constraint given upon creation.
Definition at line 63 of file EnforcedLinearConstraint.java.
String com.google.ortools.modelbuilder.EnforcedLinearConstraint.getName | ( | ) |
Returns the name of the constraint given upon creation.
Definition at line 63 of file EnforcedLinearConstraint.java.
double com.google.ortools.modelbuilder.EnforcedLinearConstraint.getUpperBound | ( | ) |
Returns the upper bound of the constraint.
Definition at line 53 of file EnforcedLinearConstraint.java.
double com.google.ortools.modelbuilder.EnforcedLinearConstraint.getUpperBound | ( | ) |
Returns the upper bound of the constraint.
Definition at line 53 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setCoefficient | ( | Variable | v, |
double | coeff ) |
Sets the coefficient of v to coeff, adding or removing a term if needed.
Definition at line 78 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setCoefficient | ( | Variable | v, |
double | coeff ) |
Sets the coefficient of v to coeff, adding or removing a term if needed.
Definition at line 78 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setIndicatorValue | ( | boolean | b | ) |
Sets the indicator value of the constraint.
Definition at line 103 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setIndicatorValue | ( | boolean | b | ) |
Sets the indicator value of the constraint.
Definition at line 103 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setIndicatorVariable | ( | Variable | v | ) |
Sets the indicator variable of the constraint.
Definition at line 93 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setIndicatorVariable | ( | Variable | v | ) |
Sets the indicator variable of the constraint.
Definition at line 93 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setLowerBound | ( | double | lb | ) |
Sets the lower bound of the constraint.
Definition at line 48 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setLowerBound | ( | double | lb | ) |
Sets the lower bound of the constraint.
Definition at line 48 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setName | ( | String | name | ) |
Sets the name of the constraint. */.
Definition at line 68 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setName | ( | String | name | ) |
Sets the name of the constraint. */.
Definition at line 68 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setUpperBound | ( | double | ub | ) |
Sets the upper bound of the constraint.
Definition at line 58 of file EnforcedLinearConstraint.java.
void com.google.ortools.modelbuilder.EnforcedLinearConstraint.setUpperBound | ( | double | ub | ) |
Sets the upper bound of the constraint.
Definition at line 58 of file EnforcedLinearConstraint.java.
EnforcedLinearConstraint com.google.ortools.modelbuilder.EnforcedLinearConstraint.withName | ( | String | name | ) |
Inline setter
Definition at line 108 of file EnforcedLinearConstraint.java.
EnforcedLinearConstraint com.google.ortools.modelbuilder.EnforcedLinearConstraint.withName | ( | String | name | ) |
Inline setter
Definition at line 108 of file EnforcedLinearConstraint.java.