Creates and returns a goal that branches the same way Cplex would in the absence of any goal at the current node.

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

Syntax

C#
public Cplex..::..Goal BranchAsCplex()
Visual Basic
Public Function BranchAsCplex As Cplex..::..Goal

Remarks

This goal allows you to proceed with the built-in search strategy while retaining the option to intervene at any node. For example, a goal whose execute method starts with

                    if (!isIntegerFeasible())
                      return cplex.And(cplex.BranchAsCplex(), this);
             

would do something different from the built-in Cplex search procedure only when an integer feasible solution is found.

See Also