Wrapper around an enforced linear constraint stored in the ModelBuilderHelper instance.
More...
|
int | Index [get] |
| Returns the index of the constraint in the model.
|
|
ModelBuilderHelper | Helper [get] |
| Returns the constraint builder.
|
|
double | LowerBound [get, set] |
| The lower bound of the constraint.
|
|
double | UpperBound [get, set] |
| The upper bound of the constraint.
|
|
Variable | IndicatorVariable [get, set] |
| The indicator variable of the constraint.
|
|
bool | IndicatorValue [get, set] |
| The indicator value of the constraint.
|
|
String | Name [get, set] |
| The name of the variable given upon creation.
|
|
Wrapper around an enforced linear constraint stored in the ModelBuilderHelper instance.
Definition at line 146 of file ModelBuilderConstraint.cs.
◆ EnforcedLinearConstraint() [1/2]
Google.OrTools.ModelBuilder.EnforcedLinearConstraint.EnforcedLinearConstraint |
( |
ModelBuilderHelper | helper | ) |
|
|
inline |
◆ EnforcedLinearConstraint() [2/2]
Google.OrTools.ModelBuilder.EnforcedLinearConstraint.EnforcedLinearConstraint |
( |
ModelBuilderHelper | helper, |
|
|
int | index ) |
|
inline |
◆ AddTerm()
void Google.OrTools.ModelBuilder.EnforcedLinearConstraint.AddTerm |
( |
Variable | var, |
|
|
double | coeff ) |
|
inline |
Adds var * coeff to the constraint.
- Parameters
-
var | the variable of the term to add |
coeff | the coefficient of the term to add |
Definition at line 254 of file ModelBuilderConstraint.cs.
◆ ClearTerms()
void Google.OrTools.ModelBuilder.EnforcedLinearConstraint.ClearTerms |
( |
| ) |
|
|
inline |
◆ SetVariableCoefficient()
void Google.OrTools.ModelBuilder.EnforcedLinearConstraint.SetVariableCoefficient |
( |
Variable | var, |
|
|
double | coeff ) |
|
inline |
Sets the coefficient of var to coeff, adding or removing a term if needed.
- Parameters
-
var | the variable of the term to set |
coeff | the coefficient of the term to set |
Definition at line 264 of file ModelBuilderConstraint.cs.
◆ WithName()
◆ Helper
◆ Index
int Google.OrTools.ModelBuilder.EnforcedLinearConstraint.Index |
|
get |
◆ IndicatorValue
bool Google.OrTools.ModelBuilder.EnforcedLinearConstraint.IndicatorValue |
|
getset |
◆ IndicatorVariable
Variable Google.OrTools.ModelBuilder.EnforcedLinearConstraint.IndicatorVariable |
|
getset |
◆ LowerBound
double Google.OrTools.ModelBuilder.EnforcedLinearConstraint.LowerBound |
|
getset |
◆ Name
String Google.OrTools.ModelBuilder.EnforcedLinearConstraint.Name |
|
getset |
◆ UpperBound
double Google.OrTools.ModelBuilder.EnforcedLinearConstraint.UpperBound |
|
getset |
The documentation for this class was generated from the following file: