Overview | Group | Tree | Graph | Index | Concepts |
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 CPXgetnodecallbackfunc
accesses the
user-written callback to be called during MIP optimization after ILOG CPLEX
has selected a node to explore, but before this exploration is carried out.
The callback routine can change the node selected by ILOG CPLEX to a node
selected by the user.
For documentation of callback arguments, see the routine CPXsetnodecallbackfunc
.
Example
CPXgetnodecallbackfunc(env, ¤t_callback, ¤t_handle);
See also the example admipex1.c
in the standard distribution.
Parameters
env
A pointer to the CPLEX environment,
as returned by CPXopenCPLEX
.
nodecallback_p
The address of the pointer to the current user-written node callback. If no callback has been set, the pointer will evaluate to NULL.
cbhandle_p
The address of a variable to hold the user's private pointer.