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