NO FRAMES

CPXgetrowindex

public int CPXgetrowindex(CPXCENVptr env, CPXCLPptr lp, const char * lname_str, int * index_p)
Definition file: cplex.h

The routine CPXgetrowindex searches for the index number of the specified row in a CPLEX problem object.

Example

 status = CPXgetrowindex (env, lp, "resource89", &rowindex);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

lname_str

A row name to search for.

index_p

A pointer to an integer to hold the index number of the row with name lname_str. If the routine is successful, *index_p contains the index number; otherwise, *index_p is undefined.

Returns:

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