Click or drag to resize

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.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddBinaryConstraint(
	int variableIndex
)

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