The routine returns a zero on success, and a nonzero if an error occurs.
int CPXgetlpcallbackfunc (CPXCENVptr env, int (CPXPUBLIC **callback_p) (CPXCENVptr, void *, int, void *), void **cbhandle_p); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
The address of a variable to hold the user's private pointer.
This is the user-written callback routine referenced above.
A nonzero terminates the optimization.
int callback (CPXCENVptr env, void *cbdata, int wherefrom, void *cbhandle); |
The pointer to the CPLEX environment that was passed into the associated optimization routine.
Pointer to user private data, as passed to CPXsetlpcallbackfunc().
status = CPXgetlpcallbackfunc (env, mycallback, NULL); |