NO FRAMES

CPXgetcallbacknodeobjval

int CPXPUBLIC CPXgetcallbacknodeobjval(CPXCENVptr env, void * cbdata, int wherefrom, double * objval_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 CPXgetcallbacknodeobjval is used to get the objective value for the subproblem at the current node during MIP optimization from within a user-written callback.

This routine may be called only when the value of the wherefrom argument is one of the following:

Example

 status = CPXgetcallbacknodeobjval (env, cbdata, wherefrom,
                                    &objval);

See also admipex1.c and admipex3.c in the standard distribution.

Parameters:

env

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

cbdata

The 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 from where the user-written callback was called. The parameter must be the value of wherefrom passed to the user-written callback.

objval_p

A pointer to a variable of type double where the objective value of the node subproblem is to be stored.

Returns:

The routine returns zero on success and nonzero if an error occurs.