 |
 |
 |
 |
Purpose |
 |
 |
Delete a list of rows, specified by names.
|
 |
Synopsis |
 |
 |
int QSdelete_named_rows_list (QSprob p, int num, const char **rownames)
|
 |
Arguments |
 |
p |
 |
a handle to an initialized problem. |
num |
 |
the number of rows to be deleted. |
rownames |
 |
an array of length num ; the entries in the array are strings specifying the names of the rows (constraints) to be deleted. |
|
 |
Returns |
 |
 |
A zero value if the function terminated correctly, and a non-zero value if an error occurred. If one or more of the rows is not in the LP problem, an error will be returned.
|
 |
Description |
 |
 |
This function can be used to delete a set constraints from an existing LP problem by specifying the names of the constraints in a list. It is more efficient to use this function then to use repeated calls to QSdelete_named_row.
|
 |
Example |
 |
 |
/* Assume p is an initialized LP problem. */
/* Delete constraints r0 and r2. */
int rval;
const char *dlist[2] = { "r0", "r2" };
rval = QSdelete_named_rows_list (p, 2, dlist);
if (rval) {
fprintf (stderr, "could not delete rows, error code %d\n", rval);
}
|
 |