NO FRAMES

CPXgetcallbacknodeintfeas

public int CPXgetcallbacknodeintfeas(CPXCENVptr env, void * cbdata, int wherefrom, int * feas, int begin, int end)
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 CPXgetcallbacknodeintfeas retrieves information for each variable about whether or not the variable is integer feasible in the node subproblem. It can be used in a user-written callback during MIP optimization. The information is from the original problem if CPX_PARAM_MIPCBREDLP is set to CPX_OFF. Otherwise, they are from the presolved problem.

Example

 status = CPXgetcallbacknodeintfeas(env, cbdata, wherefrom,
                                    feas, 0, cols-1);

See admipex1.c and admipex2.c in the standard distribution.

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

Integer feasibility status information for a node of the subproblem
CPX_INTEGER_FEASIBLE0variable j+begin is integer-valued
CPX_INTEGER_INFEASIBLE1variable j+begin is not integer-valued
CPX_IMPLIED_INTEGER_FEASIBLE2variable j+begin may have a fractional value in the current solution, but it will take on an integer value when all integer variables still in the problem have integer values. It should not be branched upon.

Parameters:

env

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

cbdata

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

feas

An array to receive integer feasibility information for the node subproblem. This array must be of length at least (end - begin + 1). If successful, feas[0] through feas[end-begin] will contain the integer feasibility information. Possible return values appear in the table.

begin

An integer specifying the beginning of the range of integer feasibility information to be returned.

end

An integer specifying the end of the range of integer feasibility information to be returned.

Returns:

The routine returns zero if successful and nonzero if an error occurs.