| MixedIntegerLinearProgrammingProblemAddBinaryConstraint(Int32) Method |
Adds a binary constraint to the variables at the given indices. A binary
constraint restricts the variable to a value of zero or one.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void AddBinaryConstraint(
params int[] variableIndices
)
Public Sub AddBinaryConstraint (
ParamArray variableIndices As Integer()
)
public:
void AddBinaryConstraint(
... array<int>^ variableIndices
)
member AddBinaryConstraint :
variableIndices : int[] -> unit
Parameters
- variableIndices Int32
- Indices of the variables to have binary
constraints.
Remarks A binary constraint for a variable is the same as the
variable having an integral constraint and bounded by zero below
and one above.
See Also