NO FRAMES

CPXgetpnorms

int CPXPUBLIC CPXgetpnorms(CPXCENVptr env, CPXCLPptr lp, double * cnorm, double * rnorm, int * len_p)
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 CPXgetpnorms returns the norms from the primal steepest-edge.

There is no comparable argument in this routine for rnorm[]. If the rows of the problem have changed since the norms were computed, they are generally no longer valid. However, if columns have been deleted, or if columns have been added, the norms for all remaining columns present before the deletions or additions remain valid.

See Also:

Parameters:

env

The pointer to the ILOG CPLEX environment, as returned by CPXopenCPLEX.

lp

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

cnorm

An array containing the primal steepest-edge norms for the normal, column variables. The array must be of length at least equal to the number of columns in the LP problem object.

rnorm

An array containing the primal steepest-edge norms for ranged variables and slacks. The array must be of length at least equal to the number of rows in the LP problem object.

len_p

A pointer to the number of entries in the array cnorm[]. When this routine is called, *len_p is equal to the number of columns in the LP problem object when optimization occurred. The routine CPXcopypnorms needs the value *len_p.

Returns:

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