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