Overview | Group | Tree | Graph | Index | Concepts |
This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.
The routine CPXbranchcallbackbranchconstraints
specifies
the branches to be taken from the current node when the branch is specified
by adding one or more constraints to the node problem. It may be called only
from within a user-written branch callback function.
Constraints are in terms of the original problem if the parameter
CPX_PARAM_MIPCBREDLP
is set to CPX_OFF
before the
call to CPXmipopt
that calls the callback. Otherwise,
constraints are in terms of the presolved problem.
L | less than or equal to constraint |
E | equal to constraint |
G | greater than or equal to constraint |
env | A pointer to the CPLEX environment, as returned by |
cbdata | A pointer passed to the user-written callback. This parameter must be the value of |
wherefrom | An integer value that indicates where the user-written callback was called from. This parameter must be the value of |
nodeest | A double that indicates the value of the node estimate for the node to be created with this branch. The node estimate is used to select nodes from the branch & cut tree with certain values of the |
rcnt | An integer that indicates the number of constraints for the branch. |
nzcnt | An integer that indicates the number of nonzero constraint coefficients for the branch. This specifies the length of the arrays |
rhs | An array of length |
sense | An array of length |
rmatbeg | An array that with |
rmatind | An array that with |
rmatval | An array that with |
userhandle | A pointer to user private data that should be associated with the node created by this branch. May be NULL. |
seqnum_p | A pointer to an integer that, on return, will contain the sequence number that CPLEX has assigned to the node created from this branch. The sequence number may be used to select this node in later calls to the node callback. |