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.
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.