| MixedIntegerNonlinearProgrammingProblemSetIntegrality Method |
Sets an integrality constraint for the variable with the given zero based
index.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void SetIntegrality(
int variableIndex,
bool isIntegral
)
Public Sub SetIntegrality (
variableIndex As Integer,
isIntegral As Boolean
)
public:
void SetIntegrality(
int variableIndex,
bool isIntegral
)
member SetIntegrality :
variableIndex : int *
isIntegral : bool -> unit
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