Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXgetmipstart
is used to access MIP start
information stored in a CPLEX problem object. Values are returned for all
integer, binary, semi-continuous, and nonzero SOS variables when the MIP
start is the result of a call to CPXmipopt
.
startspace
is 0 (zero),
then the negative of the value
of *surplus_p
returned indicates the length needed for the
arrays indices
and values
.Example
status = CPXgetmipstart (env, lp, &listsize, indices, values, numcols, &surplus);
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 MIP start entries returned; that is, the true length of the arrays |
indices | An array to contain the indices of the variables in the MIP start. |
value | An array to contain the MIP start values. The start value corresponding to |
mipstartspace | An integer indicating the length of the non-NULL array |
surplus_p | A pointer to an integer to contain the difference between |
CPXERR_NEGATIVE_SURPLUS
indicates that insufficient space was available in the indices
and values
arrays to hold the MIP start information.