CPXXcallbackgetrelaxationpoint and CPXcallbackgetrelaxationpoint

Get the solution to the current node relaxation and its objective value for callback invocations with CPX_CALLBACKCONTEXT_RELAXATION or CPX_CALLBACKCONTEXT_BRANCHING.

int  CPXXcallbackgetrelaxationpoint( CPXCALLBACKCONTEXptr context, double *x, CPXDIM begin, CPXDIM end, double *obj_p )

int  CPXcallbackgetrelaxationpoint( CPXCALLBACKCONTEXptr context, double *x, CPXDIM begin, CPXDIM end, double *obj_p )

Description

Queries the solution to the current node relaxation and its objective value.

Warning: Your call of this function is valid only if the callback was invoked in the contexts CPX_CALLBACKCONTEXT_RELAXATION or CPX_CALLBACKCONTEXT_BRANCHING. In all other contexts, it returns an error.

Arguments

context

The callback context as passed into the callback function.

x

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

begin

First column (inclusive) to query from the relaxed solution.

end

Last column (inclusive) to query from relaxed solution.

obj_p

Buffer to store the objective value of the relaxed solution. This may be NULL.

Return

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