 |
 |
 |
 |
Purpose |
 |
 |
Delete a single column from the problem.
|
 |
Synopsis |
 |
 |
int QSdelete_col (QSprob p, int colindex)
|
 |
Arguments |
 |
p |
 |
a handle to an initialized problem. |
colindex |
 |
the index of the column 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 single variable from an existing LP problem; the interface is slightly easier than that of QSdelete_cols. (Note that the variables are numbered from 0 up to ncols-1 , where ncols is the number of columns in the problem.)
|
 |
Example |
 |
 |
/* Assume p is an initialized LP problem with at least 5 columns. */
/* Use QSdelete_col() to remove column 4. */
int rval;
rval = QSdelete_col (p, 4);
if (rval) {
fprintf (stderr, "QSdelete_col failed with return code %d\n", rval);
}
|
 |