 |
 |
 |
 |
Purpose |
 |
 |
Delete a set of rows from the problem.
|
 |
Synopsis |
 |
 |
int QSdelete_rows (QSprob p, int num, int *dellist)
|
 |
Arguments |
 |
p |
 |
a handle to an initialized problem. |
num |
 |
the number of rows to be deleted. |
dellist |
 |
an array of length num specifying the indices of the rows to be deleted. |
|
 |
Returns |
 |
 |
A zero value if the function terminated correctly, and a non-zero value if an error occurred.
|
 |
Description |
 |
 |
Use this function to delete a set of constraints from an existing LP problem, specifying the constraints as a list of indices. (Note that the constraints are numbered from 0 up to nrows-1 , where nrows is the number of rows in the problem.)
|
 |
Example |
 |
 |
/* Assume p is an initialized LP problem with at least 4 rows. */
/* Use QSdelete_rows() to remove rows 1 and 3. */
int rval;
int dellist[2] = { 1, 3 };
rval = QSdelete_rows (p, 2, dellist);
if (rval) {
fprintf (stderr,
"QSdelete_rows failed with return code %d\n", rval);
}
|
 |