CPXXgetpnorms and CPXgetpnorms
The routine CPXXgetpnorms/CPXgetpnorms returns the norms from the primal
steepest-edge.
int CPXXgetpnorms( CPXCENVptr env, CPXCLPptr lp, double * cnorm, double * rnorm, CPXDIM * len_p )
int CPXgetpnorms( CPXCENVptr env, CPXCLPptr lp, double * cnorm, double * rnorm, int * len_p )
Description
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 CPXXgetpnorms/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.
Arguments
- env
-
The pointer to the CPLEX environment, as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX LP problem object, as returned by
CPXXcreateprob/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_pis equal to the number of columns in the LP problem object when optimization occurred. The routineCPXXcopypnorms/CPXcopypnormsneeds the value*len_p.