XPRBctrsetIndicator(Int32, XPRBvar) Method |
Set the indicator constraint type.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setIndicator(
int dir,
ref XPRBvar var
)
Public Function setIndicator (
dir As Integer,
ByRef var As XPRBvar
) As Integer
Parameters
- 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.
- var XPRBvar
- A previously created binary variable.
Return Value
Int320 on success, 1 on error.
See Also