CPXXgetsolvecallbackfunc and CPXgetsolvecallbackfunc
The routine CPXXgetsolvecallbackfunc/CPXgetsolvecallbackfunc accesses the
user-written callback to be called during MIP optimization to optimize the
subproblem.
int CPXXgetsolvecallbackfunc( CPXCENVptr env, int(CPXPUBLIC **solvecallback_p)(CPXX_CALLBACK_SOLVE_ARGS), void ** cbhandle_p )
int CPXgetsolvecallbackfunc( CPXCENVptr env, int(CPXPUBLIC **solvecallback_p)(CALLBACK_SOLVE_ARGS), void ** cbhandle_p )
Description
This is an advanced routine. Advanced routines typically demand a thorough understanding of the algorithms used by CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, the team encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.
The routine CPXXgetsolvecallbackfunc/CPXgetsolvecallbackfunc accesses the
user-written callback to be called during MIP optimization to optimize the
subproblem.
Arguments
- env
-
A pointer to the CPLEX environment, as returned by
CPXXopenCPLEX/CPXopenCPLEX. - solvecallback_p
-
The address of the pointer to the current user-written solve callback. If no callback 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 or an error code otherwise.Example
CPXgetsolvecallbackfunc(env, ¤t_callback, ¤t_cbdata);
See also Advanced MIP Control Interface in the CPLEX User's Manual.
For documentation of callback arguments, see the routine
CPXXsetsolvecallbackfunc/CPXsetsolvecallbackfunc.