NO FRAMES

CPXgetcallbacknodelp

public int CPXgetcallbacknodelp(CPXCENVptr env, void * cbdata, int wherefrom, CPXLPptr * nodelp_p)
Definition file: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a thorough 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 returns a pointer to the current continuous relaxation at the current branch and cut node from within a user-written callback. Generally, this pointer may be used only in ILOG CPLEX Callable Library query routines, such as CPXsolution or CPXgetrows.

Note that the setting of the parameter CPX_PARAM_MIPCBREDLP does not affect this lp pointer. Since CPLEX does not explicitly maintain an unpresolved node LP, the lp pointer will correspond to the presolved node LP unless CPLEX presolve has been turned off or CPLEX has made no presolve reductions at all.

Example

 status = CPXgetcallbacknodelp (env, cbdata, wherefrom, &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 argument must be the value of cbdata passed to the user-written callback.

wherefrom

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

nodelp_p

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

Returns:

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