CPXXcallbackcandidateispoint and CPXcallbackcandidateispoint

Tests whether a callback in the context CPX_CALLBACKCONTEXT_CANDIDATE was invoked for a candidate feasible point.

int  CPXXcallbackcandidateispoint( CPXCALLBACKCONTEXptr context, int *ispoint_p )

int  CPXcallbackcandidateispoint( CPXCALLBACKCONTEXptr context, int *ispoint_p )

Description

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

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

An invocation of the callback in the context CPX_CALLBACKCONTEXT_CANDIDATE occurs either because CPLEX has found a candidate integer feasible point or because CPLEX has detected an unbounded relaxation. In the first case, this routine returns true in ispoint_p, and you can query the candidate feasible point by calling CPXXcallbackgetcandidatepoint and CPXcallbackgetcandidatepoint.

Arguments

context

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

ispoint_p

A pointer to memory into which CPLEX will put a true value if the callback was invoked for a candidate that is a feasible point; CPLEX puts 0 (zero) there otherwise.

Return

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

Example