CPXXgetlpcallbackfunc and CPXgetlpcallbackfunc
Accesses the user-written legacy callback routine to be called after each iteration during the optimization of a continuous problem (LP, QP, or QCP), and also periodically during the CPLEX presolve algorithm.
int CPXXgetlpcallbackfunc( CPXCENVptr env, int(CPXPUBLIC **callback_p)(CPXCENVptr, void *, int, void *), void ** cbhandle_p )
int CPXgetlpcallbackfunc( CPXCENVptr env, int(CPXPUBLIC **callback_p)(CPXCENVptr, void *, int, void *), void ** cbhandle_p )
Description
The routine CPXXgetlpcallbackfunc/CPXgetlpcallbackfunc
accesses the
user-written legacy callback routine to be called after each iteration during the
optimization of a continuous problem (LP, QP, or QCP),
and also periodically during the CPLEX presolve algorithm.
For documentation of the user-written LP callback functions, see CPXXsetlpcallbackfunc and CPXsetlpcallbackfunc.
This routine is part of legacy callbacks. Do not use this routine with a generic callback in your application. For more about generic callbacks, see the topic Generic callbacks in the CPLEX User's Manual.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - callback_p
-
The address of the pointer to the current user-written callback function. If no callback function has been set, the pointer evaluates to NULL.
- cbhandle_p
-
The address of a variable to hold the user's private pointer.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXgetlpcallbackfunc (env, mycallback, NULL);