NO FRAMES

CPXqpdjfrompi

int CPXPUBLIC CPXqpdjfrompi(CPXCENVptr env, CPXCLPptr lp, const double * pi, const double * x, double * dj)
Definition file: cplex.h
Include files: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.

The routine CPXqpdjfrompi computes an array of reduced costs from an array of dual values for a QP.

Example

 status = CPXqpdjfrompi (env, lp, origpi, reducepi);

Parameters:

env

A pointer to the CPLEX environment, as returned by CPXopenCPLEX.

lp

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

pi

An array that contains dual solution (pi) values for a problem, as returned by such routines as CPXqpuncrushpi and CPXcrushpi. The length of the array must at least equal the number of rows in the LP problem object.

x

An array that contains primal solution (x) values for a problem, as returned by such routines as CPXuncrushx and CPXcrushx. The length of the array must at least equal the number of columns in the LP problem object.

dj

An array to receive the reduced cost values computed from the pi values for the problem object. The length of the array must at least equal the number of columns in the problem object.

Returns:

The routine returns zero on success and nonzero if an error occurs.