| MixedIntegerNonlinearProgrammingProblemAddBinaryConstraint(Int32) Method |
Adds a binary constraint to the variable at the given index. 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(
int variableIndex
)
Public Sub AddBinaryConstraint (
variableIndex As Integer
)
public:
void AddBinaryConstraint(
int variableIndex
)
member AddBinaryConstraint :
variableIndex : int -> unit
Parameters
- variableIndex Int32
- Index of the variable to have a binary
constraint.
Remarks A binary constraint for a varible is the same as the
variable having an integral constraint and bounded by zero below
and one above.
See Also