CPXgetcallbackseqinfo


Usage

Mixed Integer Users Only

Description

The routine CPXgetcallbackseqinfo() accesses information about nodes during the MIP optimization from within user-written callbacks. This routine may be called only when the value of its wherefrom argument is CPX_CALLBACK_MIP_NODE. The information accessed from this routine can also be accessed with the routine CPXgetcallbacknodeinfo(). Nodes are not stored by sequence number but by node number, so using the routine CPXgetcallbackseqinfo() can be much more time-consuming than using the routine CPXgetcallbacknodeinfo(). A typical use of this routine would be to obtain the node number of a node for which the sequence number is known and then use that node number to select the node with the node callback.

Return Value

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

The return value CPXERR_NODE_ON_DISK indicates an attempt to access a node currently located in a node file on disk.

Synopsis

  int CPXgetcallbackseqinfo (CPXCENVptr env,
                             void *cbdata,
                             int wherefrom,
                             int seqnum,
                             int whichinfo,
                             void *result_p);

Arguments

CPXCENVptr env

The pointer to the ILOG CPLEX environment, as returned by one of the CPXopenCPLEX routines.

void *cbdata

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

int wherefrom

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

int seqnum

The sequence number of the node for which information is requested.

int whichinfo

An integer indicating which information is requested. For a summary of possible values, refer to the table Information Requested for a User-Written Node Callback in the description of CPXgetcallbacknodeinfo().

void *result_p

A generic pointer to a variable of type double or int, representing the value returned by whichinfo. The column C Type in the table Information Requested for a User-Written Node Callback indicates the type of various values returned by whichinfo.


Previous Page: CPXgetcallbackpseudocosts Return to Top Next Page: CPXgetcallbacksosinfo