OptimizationModel.AddBinaryVariable 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#
public DecisionVariable AddBinaryVariable(
	string name
)

Parameters

name  String
The name of the variable.

Return Value

DecisionVariable
The new DecisionVariable.

Exceptions

ArgumentException

The optimization model already contains a variable named name.

See Also