Gets the index of a given column or row name in the lp.
int get_nameindex(lprec *lp, char *name, unsigned char isrow);
get_nameindex returns the index (column/row number) of the given column/row name. A return value of -1 indicates that the name does not exist. Note that the index is the original index number. So if presolve is active, it has no effect. It is the original column/row number that is returned.
The name of the column or row for which the index (column/row number) must be retrieved.
Set to FALSE (0) if column information is needed and TRUE (1) if row information is needed.
The get_nameindex function returns the index (column/row number) of the given column/row name.
Note that this index starts from 1. Some API routines expect zero-based indexes and thus this value must then be corrected with -1.