CPXXcallbackgetcandidateray and CPXcallbackgetcandidateray

Gets the unbounded ray for callback invocations in the context CPX_CALLBACKCONTEXT_CANDIDATE.

int  CPXXcallbackgetcandidateray( CPXCALLBACKCONTEXTptr context, double *x, CPXDIM begin, CPXDIM end, double *obj_p, )

int  CPXcallbackgetcandidateray( CPXCALLBACKCONTEXTptr context, double *x, CPXDIM begin, CPXDIM end, double *obj_p, )

Description

This routine queries unbounded ray.

Warning: Calling this function is valid only when the callback is invoked in the context CPX_CALLBACKCONTEXT_CANDIDATE and CPXXcallbackcandidateisray and CPXcallbackcandidateisray indicates an unbounded solution. In all other situations, this routine returns an error.

Arguments

context

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

x

Buffer to store the values queried. The buffer must have size at least 1+end-end. The buffer can be NULL if begin and end specify an empty range.

begin

First column (inclusive) to query from the unbounded ray.

end

Last column (inclusive) to query from the unbounded ray.

Return

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