CPXXgetnetcallbackfunc and CPXgetnetcallbackfunc
Accesses the user-written legacy callback routine to be called each time a log message is issued during the optimization of a network problem.
int CPXXgetnetcallbackfunc( CPXCENVptr env, int(CPXPUBLIC **callback_p)(CPXCENVptr, void *, int, void *), void ** cbhandle_p )
int CPXgetnetcallbackfunc( CPXCENVptr env, int(CPXPUBLIC **callback_p)(CPXCENVptr, void *, int, void *), void ** cbhandle_p )
Description
The CPXXgetnetcallbackfunc/CPXgetnetcallbackfunc accesses the
user-written legacy callback routine to be called each time a log message is issued
during the optimization of a network problem. If the display log is turned
off, the callback routine is still called.
For documentation of the user-written network callback function, see CPXXsetnetcallbackfunc and CPXsetnetcallbackfunc.
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 private pointer of the user.
Return
A nonzero terminates the optimization.Example
status = CPXgetnetcallbackfunc (env, mycallback, NULL);