NO FRAMES

CPXgetx

public int CPXgetx(CPXCENVptr env, CPXCLPptr lp, double * x, int begin, int end)
Definition file: cplex.h

The routine CPXgetx accesses the solution values for a range of problem variables. The beginning and end of the range must be specified.

Example

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

See also the example lpex2.c in the ILOG CPLEX User's Manual and 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 receive 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] contains the solution values.

begin

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

end

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

Returns:

The routine returns zero if successful and nonzero if an error occurs.