Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXgetorder
is used to access all the MIP
priority order information stored in a CPLEX problem object. A priority
order is generated if there is no order and parameter
CPX_PARAM_MIPORDTYPE
is nonzero.
ordspace
is 0, then the negative of the value
of *surplus_p
returned indicates the length needed for the
arrays indices, priority, and direction.Example
status = CPXgetorder (env, lp, &listsize, indices, priority, direction, numcols, &surplus);
CPX_BRANCH_GLOBAL | (0) | use global branching direction setting CPX_PARAM_BRDIR |
CPX_BRANCH_DOWN | (1) | branch down first on variable indices[k] |
CPX_BRANCH_UP | (2) | branch up first on variable indices[k] |
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
cnt_p | A pointer to an integer to contain the number of order entries returned; i.e., the true length of the arrays |
indices | An array where the indices of the variables in the order are to be returned. |
priority | An array where the priority values are to be returned. The priority corresponding to the |
direction | An array where the preferred branching directions are to be returned. The direction corresponding to |
ordspace | An integer indicating the length of the non-NULL arrays |
surplus_p | A pointer to an integer to contain the difference between |
CPXERR_NEGATIVE_SURPLUS
indicates that insufficient space was available in the indices,
priority, and direction arrays to hold the priority order information.