XPRBctrsetIndicator(XPRBvar, Int32) Method |
Set the indicator constraint type.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setIndicator(
ref XPRBvar var,
int dir
)
Public Function setIndicator (
ByRef var As XPRBvar,
dir As Integer
) As Integer
Parameters
- var XPRBvar
- A previously created binary variable.
- dir Int32
- Constraint type:
- -1 – -1 for an indicator constraint with condition b=0.
- 0 – 0 for an ordinary constraint.
- 1 – 1 for an indicator constraint with condition b=1.
Return Value
Int320 on success, 1 on error.
See Also