Click or drag to resize

MixedIntegerNonlinearProgrammingProblemSetIntegrality Method

Sets an integrality constraint for the variable with the given zero based index.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void SetIntegrality(
	int variableIndex,
	bool isIntegral
)

Parameters

variableIndex  Int32
Index of the variable to set the integral constraint for. Must be between zero and the number of variables minus one, inclusive.
isIntegral  Boolean
If true the variable will be constrained to have an integer value. If false it will have no integral constraint and any previously added integral constraint will be removed. Note, however, that any variable bounds that the variable may have will be unaffected.
See Also