NO FRAMES

CPXgetijrow

int CPXPUBLIC CPXgetijrow(CPXCENVptr env, CPXCLPptr lp, int i, int j, int * row_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 CPXgetijrow returns the index of a specific basic variable as its position in the basis header. If the specified row indexes a constraint that is not basic, or if the specified column indexes a variable that is not basic, CPXgetijrow returns an error code and sets the value of its argument *row_p to -1. An error is also returned if both row and column indices are specified in the same call.

Parameters:

env

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

lp

The pointer to the CPLEX LP problem object, as returned by CPXcreateprob.

i

An integer specifying the index of a basic row; CPXgetijrow must find the position of this basic row in the basis header. A negative value in this argument indicates to CPXgetijrow not to seek a basic row.

j

An integer specifying the index of a basic column; CPXgetijrow must find the position of this basic column in the basis header. A negative value in this argument indicates to CPXgetijrow not to seek a basic column.

row_p

A pointer to an integer indicating the position in the basis header of the row i or column j. If CPXgetijrow encounters an error, and if row_p is not NULL, *row_p is set to -1.

Returns:

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