Download ILOG CPLEX 8.1 Advanced Reference Manual
Transcript
CPXbranchcallbackbranchgeneral CPXbranchcallbackbranchgeneral Description The routine CPXbranchcallbackbranchgeneral()specifies the branches to be taken from the current node when the branch includes variable bound changes and additional constraints. It may be called only from within a user-written branch callback function. Branch variables 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, branch variables are in terms of the presolved problem. Return Value The routine returns a zero on success, and a nonzero if an error occurs. Synopsis int CPXbranchcallbackbranchgeneral (CPXCENVptr env, void *cbdata, int wherefrom, double nodeest, int varcnt, const int *varind, const char *varlu, const int *varbd, int rcnt, int nzcnt, const double *rhs, const char *sense, const int *rmatbeg, const int *rmatind, const double *rmatval, void *userhandle int *seqnum_p); Arguments CPXCENVptr env The pointer to the ILOG CPLEX environment, as returned by one of the CPXopenCPLEX routines. void *cbdata A pointer passed to the user-written callback. This parameter must be the value of cbdata passed to the user-written callback. int wherefrom An integer value that indicates where the user-written callback was called from. This parameter must be the value of wherefrom passed to the user-written callback. double 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 NodeSel parameter. 50 ILOG CPLEX 8.1 — ADVANCED REFERENCE MANUAL