Linear Program.Add Binary Variable Method
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Add | Adds a binary variable to the collection. |
Add | Adds a binary variable to the collection. |
AddBinaryVariable(String, Double)
Adds a binary variable to the collection.
public LinearProgramVariable AddBinaryVariable(
string name,
double cost
)
Parameters
Return Value
LinearProgramVariableThe new DecisionVariable.
Exceptions
Argument | The linear program already contains a variable named name. |