OptimizationModel.AddBinaryVariable 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#
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