NO FRAMES

CPXgetmipx

int CPXPUBLIC CPXgetmipx(CPXCENVptr env, CPXCLPptr lp, double * x, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetmipx is used to access a range of mixed integer solution values. The beginning and end of the range must be specified.

Example

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

See also the example mipex1.c in the standard distribution.

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

x

An array to 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] contain the solution values begin through end.

begin

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

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 the example mipex1.c in the standard distribution.

Returns:

The routine returns zero on success, and nonzero if an error occurs. If no integer solution has been found, the value CPXERR_NO_INT_SOLN is returned.