CPXgetcallbacknodelb


Usage

Mixed Integer Users Only

Description

The routine CPXgetcallbacknodelb() is used to get the lower bound values for the subproblem at the current node during MIP optimization from within a user-written callback. The values are from the original problem if CPX_PARAM_MIPCBREDLP is set to CPX_OFF, otherwise they are from the presolved problem.

This routine may be called only when the value of the wherefrom argument is one of CPX_CALLBACK_MIP, CPX_CALLBACK_MIP_BRANCH, CPX_CALLBACK_MIP_INCUMBENT, CPX_CALLBACK_MIP_NODE, CPX_CALLBACK_MIP_HEURISTIC, CPX_CALLBACK_MIP_SOLVE, or CPX_CALLBACK_MIP_CUT.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

  int CPXgetcallbacknodelb (CPXENVptr env,
                            void *cbdata,
                            int wherefrom,
                            double *lb,
                            int begin,
                            int end);

Arguments

CPXENVptr env

The pointer to the CPLEX environment, as returned by one of the CPXopenCPLEX routines.

void *cbdata

The 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 indicating from where the user-written callback was called. The parameter must be the value of wherefrom passed to the user-written callback.

double *lb

An array to receive the values of the lower bound values. This array must be of length at least (end - begin + 1). If successful, lb[0] through lb[end-begin] contain the lower bound values for the current subproblem.

int begin

An integer indicating the beginning of the range of lower bounds to be returned.

int end

An integer indicating the end of the range of lower bounds to be returned.

Example

  status = CPXgetcallbacknodelb (env, cbdata, wherefrom,
                                 lb, 0, cols-1);


Previous Page: CPXgetcallbacknodeintfeas Return to Top Next Page: CPXgetcallbacknodelp