Overview | Group | Tree | Graph | Index | Concepts |
This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.
The routine CPXgetcallbackorder
is used to get MIP
priority order information during MIP optimization from within a
user-written callback. The values are from the original problem if
CPX_PARAM_MIPCBREDLP
is set to CPX_OFF
. Otherwise,
they are from the presolved problem.
This routine may be called only when the value of the
wherefrom
argument is one of the following values:
CPX_CALLBACK_MIP
,
CPX_CALLBACK_MIP_BRANCH
,
CPX_CALLBACK_MIP_INCUMBENT
,
CPX_CALLBACK_MIP_NODE
,
CPX_CALLBACK_MIP_HEURISTIC
,
CPX_CALLBACK_MIP_SOLVE
, or
CPX_CALLBACK_MIP_CUT
.
Example
status = CPXgetcallbackorder (env, cbdata, wherefrom, priority, NULL, 0, cols-1);
CPX_BRANCH_GLOBAL | 0 | use global branching direction setting CPX_PARAM_BRDIR |
CPX_BRANCH_DOWN | -1 | branch down first on variable j+begin |
CPX_BRANCH_UP | 1 | branch up first on variable j+begin |
env | A pointer to the CPLEX environment, as returned by |
cbdata | The pointer passed to the user-written callback. This parameter must be the value of |
wherefrom | An integer value indicating from where the user-written callback was called. The parameter must be the value of |
priority | An array where the priority values are to be returned. This array must be of length at least ( |
begin | An integer indicating the beginning of the range of priority order information to be returned. |
end | An integer indicating the end of the range of priority order information to be returned. |