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.4
C#
The new DecisionVariable.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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. |