Previous Page: CPXgetmipstartFirst PageNext Page: CPXgetnetcallbackfunc

CPXgetmipx


Usage

Mixed Integer Users Only

Description

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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

double *x
An 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 begin
An integer indicating the beginning of the range of variable values to be returned.

int end
An integer indicating the end of the range of variable values to be returned.

Example

status = CPXgetmipx (env, lp, x, 0, CPXgetnumcols(env,lp)-1);

See Also

Example mipex1.c in the CPLEX User's Manual.

Previous Page: CPXgetmipstartFirst PageNext Page: CPXgetnetcallbackfunc