CPXXgetdnorms and CPXgetdnorms

The routine CPXXgetdnorms/CPXgetdnorms accesses the norms from the dual steepest edge.

int  CPXXgetdnorms( CPXCENVptr env, CPXCLPptr lp, double * norm, CPXDIM * head, CPXDIM * len_p )

int  CPXgetdnorms( CPXCENVptr env, CPXCLPptr lp, double * norm, int * head, int * len_p )

Description

Warning:

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

The routine CPXXgetdnorms/CPXgetdnorms accesses the norms from the dual steepest edge. As in CPXXcopydnorms/CPXcopydnorms, the argument head is an array of column or row indices corresponding to the array of norms. Column indices are indexed with nonnegative values. Row indices are indexed with negative values offset by 1 (one). For example, if head[0]=-5, norm[0] is associated with row 4.

Arguments

env
The pointer to the CPLEX environment, as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to the CPLEX LP problem object, as returned by CPXXcreateprob/CPXcreateprob.
norm
An array containing the dual steepest-edge norms in the ordered specified by head[]. The array must be of length at least equal to the number of rows in the LP problem object.
head
An array containing column or row indices. The allocated length of the array must be at least equal to the number of rows in the LP problem object.
len_p
A pointer to an integer that specifies the number of entries in both norm[] and head[]. The value assigned to the pointer *len_p is needed by the routine CPXXcopydnorms/CPXcopydnorms.

Return

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