CPXXcallbackgetlocalub and CPXcallbackgetlocalub
The routine CPXXcallbackgetlocalub/CPXcallbackgetlocalub
retrieves the upper bound values for the subproblem at the current node
during MIP optimization from within a user-written callback.
int CPXXcallbackgetlocalub( CPXCALLBACKCONTEXTptr context, double * ub, CPXDIM begin, CPXDIM end )
int CPXcallbackgetlocalub( CPXCALLBACKCONTEXTptr context, double * ub, int begin, int end )
Description
The routine CPXXcallbackgetlocalub/CPXcallbackgetlocalub
retrieves the upper bound values for the subproblem at the current node
during MIP optimization from within a user-written callback.
- CPX_CALLBACKCONTEXT_RELAXATION,
- CPX_CALLBACKCONTEXT_BRANCHING,
-
CPX_CALLBACKCONTEXT_CANDIDATE,
but only if the candidate solution comes from an integer feasible node
(that is, the routine CPXXcallbackgetinfoint and CPXcallbackgetinfoint invoked
with
CPXCALLBACKINFO_CANDIDATE_SOURCEreturns the valueCPX_LAZYCONSTRAINTCALLBACK_NODE).
Arguments
- context
-
The callback context as passed into the callback function.
- ub
-
An array to receive the values of the upper bound values. This array must be of length at least (
end-begin+1). If successful,ub[0]throughub[end-begin]contain the upper bound values for the current subproblem. - begin
- An integer specifying the beginning of the range of upper bounds to be returned.
- end
- An integer specifying the end of the range of upper bounds to be returned.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXcallbackgetlocalub (context, ub, 0, cols-1);