NO FRAMES

CPXgetcutcallbackfunc

void CPXPUBLIC CPXgetcutcallbackfunc(CPXCENVptr env, int(CPXPUBLIC **cutcallback_p)(CALLBACK_CUT_ARGS) , void ** cbhandle_p)
Definition file: cplex.h
Include files: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.

The routine CPXgetcutcallbackfunc accesses the user-written callback for adding cuts. The user-written callback is called by ILOG CPLEX during MIP branch & cut for every node that has an LP optimal solution with objective value below the cutoff and that is integer infeasible. The callback routine adds globally valid cuts to the LP subproblem.

Example

 CPXgetcutcallbackfunc(env, &current_cutfunc,
 &current_data);

See also Advanced MIP Control Interface in the ILOG CPLEX User's Manual.

For documentation of callback arguments, see the routine CPXsetcutcallbackfunc.

Parameters

env

A pointer to the CPLEX environment, as returned by CPXopenCPLEX.

cutcallback_p

The address of the pointer to the current user-written cut 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.

See Also:

Returns:

This routine does not return a result.