| Overview | Group | Index | Concepts | 
The routine CPXgetmipcallbackfunc accesses the
 user-written callback routine to be called prior to solving each subproblem
 in the branch & cut tree during the optimization of a mixed integer
 program.
This routine works in the same way as the routine
 CPXgetlpcallbackfunc. It enables the user to create a
 separate callback function to be called during the solution of mixed integer
 programming problems. The prototype for the callback function is identical
 to that of CPXgetlpcallbackfunc.
Parameters
env
A pointer to the CPLEX environment as returned 
 by 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.
Example
status = CPXgetmipcallbackfunc (env, mycallback, NULL);
Callback description
 int callback (CPXCENVptr env,
               void       *cbdata,
               int        wherefrom,
               void       *cbhandle);
 This is the user-written callback routine.
Callback return value
A nonzero terminates the optimization.
Callback arguments
env
A pointer to the CPLEX environment that was passed into the associated optimization routine.
cbdata
A pointer passed from the optimization routine to the user-written
 callback function that identifies the LP problem being optimized. The only
 purpose for the cbdata pointer is to pass it to the routine
 CPXgetcallbackinfo.
wherefrom
An integer value indicating from which optimization algorithm the user-written callback function was called. Possible values and their meaning appear in this table.
| Value | Symbolic Constant | Meaning | 
|---|---|---|
101 | CPX_CALLBACK_MIP | From mipopt | 
107 | CPX_CALLBACK_MIP_PROBE | From probing or clique merging | 
108 | CPX_CALLBACK_MIP_FRACCUT | From Gomory fractional cuts | 
109 | CPX_CALLBACK_MIP_DISJCUT | From disjunctive cuts | 
110 | CPX_CALLBACK_MIP_FLOWMIR | From Mixed Integer Rounding cuts | 
cbhandle
Pointer to user private data, as passed to
 CPXsetmipcallbackfunc.
See Also: