Initializing help system before first use

setIndicator Method (XPRBvar, Int32)

Set the indicator constraint type.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public int setIndicator(
	ref XPRBvar var,
	int dir
)

Parameters

var
Type:  BCLXPRBvar
A previously created binary variable.
dir
Type:  SystemInt32
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

Type:  Int32
0 on success, 1 on error.
See Also