Optimization Model.Add Binary Variable Method
Adds a binary variable to the collection.
Definition
Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The new DecisionVariable.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public DecisionVariable AddBinaryVariable(
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. |