NO FRAMES

CPXgetcallbacknodelp

int CPXPUBLIC CPXgetcallbacknodelp(CPXCENVptr env, void * cbdata, int wherefrom, CPXLPptr * nodelp_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 CPXgetcallbacknodelp accesses the lp pointer indicating the currently defined linear programming subproblem (LP) from within user-written callbacks. Generally, this pointer may be used only in ILOG CPLEX Callable Library query routines, such as CPXsolution or CPXgetrows.

Example

 status = CPXgetcallbacknodelp (env, cbdata, &nodelp);

See also the example admipex1.c and admipex6.c in the standard distribution.

CPXgetcallbacknodelp may be called only when its wherefrom argument has one of the following values:

When the wherefrom argument has the value CPX_CALLBACK_MIP_SOLVE, the subproblem pointer may also be used in ILOG CPLEX optimization routines.

Note
Any modification to the subproblem may result in corruption of the problem and of the ILOG CPLEX environment.

Parameters:

env

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

cbdata

The cbdata pointer passed to the user-written callback. This parameter must be the value of cbdata passed to the user-written callback.

wherefrom

An integer value indicating where the user-written callback was called from. This parameter must be the value of the wherefrom passed to the user-written callback.

nodelp_p

The lp pointer indicating the current subproblem. If no subproblem is defined, the pointer is set to NULL.

Returns:

The routine returns zero on success and nonzero if an error occurs. A nonzero return value may mean that the requested value is not available.