Usage
Mixed Integer Users OnlyDescription
The routine CPXgetmipx() is used to access a range of mixed integer solution values. The beginning and end of the range must be specified. Return Value
The routine returns a zero on success, and a nonzero if an error occurs. If no integer solution exists, the value CPXERR_NO_INT_SOLUTION is returned.Synopsis
int CPXgetmipx (CPXENVptr env,
CPXLPptr lp,
double *x,
int begin,
int end);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
double *xAn array that will contain the values of the primal variables for the problem. This array must be of length at least
(end-begin+1). If successful, x[0] through x[end-begin] will contain the solution values begin through end.
int beginAn integer indicating the beginning of the range of variable values to be returned.
int endAn integer indicating the end of the range of variable values to be returned.
status = CPXgetmipx (env, lp, x, 0, CPXgetnumcols(env,lp)-1);