get_row_name, get_origrow_nameGets the name of a constraint (row) in the lp. char *get_row_name(lprec *lp, int row); char *get_origrow_name(lprec *lp, int row); Return Value get_row_name and get_origrow_name return the name of the specified row. A return value of NULL indicates an error. The difference between get_row_name and get_origrow_name is only visible when a presolve (set_presolve) was done. Presolve can result in deletion of rows in the model. In get_row_name, row specifies the row number after presolve was done. In get_origrow_name, row specifies the row number before presolve was done, ie the original row number. If presolve is not active then both functions are equal. Parameters lp Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI row The row for which the name must be retrieved. Must be between 0 and the number of rows in the lp. In get_row_name, row specifies the row number after presolve was done. In get_origrow_name, row specifies the row number before presolve was done, ie the original row number. Remarks The get_row_name and get_origrow_name functions return the name of
the row. Example
See Also make_lp, copy_lp, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, set_row_name, set_col_name, get_col_name, get_origcol_name, get_nameindex |