Click or drag to resize

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

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