The routine CPXgetcallbacklp()
is used to get the pointer to the MIP problem that is in use when the user-written callback function is called. It is the original MIP if CPX_PARAM_MIPCBREDLP
is set to CPX_OFF
, otherwise it is the presolved MIP. In contrast, the function CPXgetcallbacknodelp
()
returns a pointer to the node subproblem, which is an LP. Generally, this pointer may be used only in CPLEX Callable Library query routines, such as CPXsolution()
or CPXgetrows()
.
The routine returns a zero on success, and a nonzero if an error occurs.
int CPXgetcallbacklp (CPXCENVptr env, void *cbdata, int wherefrom, CPXCLPptr *lp_p); |
The pointer to the CPLEX environment, as returned by one of the CPXopenCPLEX
routines.
status = CPXgetcallbacklp (env, cbdata, wherefrom, &origlp); |