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 CPXgetprotected
is used to get the set of
variables that cannot be aggregated out.
pspace
is 0, the negative of the value of
*surplus_p
returned indicates the length needed for array
indices
.Example
status = CPXgetprotected (env, lp, &protectcnt, protectind, 10, &surplus);
env | A pointer to the CPLEX environment, as returned by |
lp | A pointer to a CPLEX LP problem object, as returned by |
cnt_p | A pointer to an integer to contain the number of protected variables returned, that is, the true length of the array |
indices | The array to contain the indices of the protected variables. |
pspace | An integer indicating the length of the array |
surplus_p | A pointer to an integer to contain the difference between |
CPXERR_NEGATIVE_SURPLUS
indicates that insufficient space was available in the array indices
to hold the protected variable indices.