 |
 |
 |
 |
Purpose |
 |
 |
Delete a list of columns, specified by names.
|
 |
Synopsis |
 |
 |
int QSdelete_named_columns_list(QSprob p,
int num, const char **colnames)
|
 |
Arguments |
 |
p |
 |
a handle to an initialized problem. |
num |
 |
the number of columns to be deleted. |
colnames |
 |
an array of length num ; the entries in the array are strings specifying the names of the columns (variables) 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 columns is not in the LP problem, an error will be returned.
|
 |
Description |
 |
 |
This function can be used to delete a set of variables from an existing LP problem by specifying the names of the variables in a list. It is more efficient to use this function then to use repeated calls to QSdelete_named_column.
|
 |
Example |
 |
 |
/* Assume p is an initialized LP problem. */
/* Delete variables v and w. */
int rval;
const char *dlist[2] = { "v", "w" };
rval = QSdelete_named_columns_list (p, 2, dlist);
if (rval) {
fprintf (stderr,
"could not delete variables, error code %d\n", rval);
}
|
 |