NO FRAMES

CPXgetpi

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

The routine CPXgetpi accesses the dual values for a range of the constraints of a linear or quadratic program. The beginning and end of the range must be specified.

Example

 status = CPXgetpi (env, lp, pi, 0, CPXgetnumrows(env,lp)-1); 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

pi

An array to receive the values of the dual variables for each of the constraints. This array must be of length at least (end - begin + 1). If successful, pi[0] through pi[end-begin] contain the dual values.

begin

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

end

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

Example

 status = CPXgetpi (env, lp, pi, 0, CPXgetnumrows(env,lp)-1); 

Returns:

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