Optimization Model.Add Integer Variable Method
Definition
Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Add | Adds an integer variable to the collection. |
Add | Adds a binary variable to the collection. |
AddIntegerVariable(String)
Adds an integer variable to the collection.
public DecisionVariable AddIntegerVariable(
string name
)
Parameters
- name String
- The name of the variable.
Return Value
DecisionVariableThe new DecisionVariable.
Exceptions
Argument | The optimization model already contains a variable named name. |
AddIntegerVariable(String, Int32, Int32)
Adds a binary variable to the collection.
public DecisionVariable AddIntegerVariable(
string name,
int lowerBound,
int upperBound
)
Parameters
- name String
- The name of the variable.
- lowerBound Int32
- The lower bound for the variable.
- upperBound Int32
- The upper bound for the variable.
Return Value
DecisionVariableThe new DecisionVariable.
Exceptions
Argument | The optimization model already contains a variable named name. |