Returns the branch direction for a variable.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
protected Cplex..::..BranchDirection GetDirection( INumVar var ) |
| Visual Basic |
|---|
Protected Function GetDirection ( _ var As INumVar _ ) As Cplex..::..BranchDirection |
Parameters
- var
- Type: ILOG.Concert..::..INumVar
The variable whose branch direction is being queried.
Return Value
The branch direction for the variable var.
Remarks
This method returns the branch direction assigned to the variable var by the method Cplex.SetDirection. If no branch direction has been assigned to the variable, Cplex.BranchDirection.Global is returned.