Creates a child node for the current node that is identical to the branch i that CPLEX is doing.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
protected virtual Cplex..::..NodeId MakeBranch(
	int i,
	Object data
)
Visual Basic
Protected Overridable Function MakeBranch ( _
	i As Integer, _
	data As Object _
) As Cplex..::..NodeId

Parameters

i
Type: System..::..Int32
The index of the CPLEX branch to replicate.
data
Type: System..::..Object
A user data object to associate with the new node being created.

Return Value

The Cplex.NodeId of the created child node.

Remarks

This method or any of the other makeBranch methods can be called zero, one, or two times. Each time one of the makeBranch methods is called, a child node of the current node is created, It is an error to call one of the makeBranch methods more than twice.

This method creates the branch that CPLEX would create for branch i. Simultaneously, this method attaches the user object data to the new child node. The same index i must not be used with more than one call of the function.

See Also