CPXXcallbackcandidateisray and CPXcallbackcandidateisray

Tests whether a callback in the context CPX_CALLBACKCONTEXT_CANDIDATE was invoked for an unbounded relaxation.

int  CPXXcallbackcandidateisray( CPXCALLBACKCONTEXTptr context, int *isray_p )

int  CPXcallbackcandidateisray( CPXCALLBACKCONTEXTptr context, int *isray_p )

Description

This routine queries the type of solution for which the callback was invoked.

Warning: Calling this routine is valid only when the callback was invoked in the context CPX_CALLBACKCONTEXT_CANDIDATE. In all other contexts, this routine returns an error.

An invocation of the callback in the context CPX_CALLBACKCONTEXT_CANDIDATE occurs either because CPLEX found a candidate integer feasible point or because CPLEX detected an unbounded relaxation. In the second case, this routine returns true in the argument isray_p. You can access an unbounded direction for the unbounded relaxation by using CPXXcallbackgetcandidateray and CPXcallbackgetcandidateray.

Arguments

context

The callback context as passed into the user-written callback function.

isray_p

A pointer to memory into which CPLEX puts a true value if the callback was invoked for an unbounded direction; otherwise, CPLEX puts 0 (zero) there.

Return

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

Example