CPXXcallbackgetglobalub and CPXcallbackgetglobalub
The routine CPXXcallbackgetglobalub/CPXcallbackgetglobalub
retrieves the best known globally valid upper bound values during MIP
optimization from within a user-written callback.
int CPXXcallbackgetglobalub( CPXCALLBACKCONTEXTptrcontext, double *ub, CPXDIMbegin, CPXDIMend )
int CPXcallbackgetglobalub( CPXCALLBACKCONTEXTptrcontext, double *ub, intbegin, intend )
Description
The routine CPXXcallbackgetglobalub/CPXcallbackgetglobalub
retrieves the best known globally valid upper bound values during
MIP optimization from within a user-written callback.
The routine can not be invoked in the context CPX_CALLBACKCONTEXT_THREAD_UP nor CPX_CALLBACKCONTEXT_THREAD_DOWN.
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 = CPXcallbackgetglobalub (context, ub, 0, cols-1);