QSopt QSdelete_named_column QSopt > Callable Library > Function List
  QSopt
  Downloads
  LP Info
  Software
  Problem Formats
  Callable Library
  Overview
Function List
  Rational Solver
  Beta
  Contact Info
Purpose
Delete a column specified by name.
Synopsis
int QSdelete_named_column (QSprob p, const char *colname)
Arguments
p a handle to an initialized problem.
colname a string specifying the name of a column (variable) to be deleted.
Returns
A zero value if the function terminated correctly, and a non-zero value if an error occurred. If the column is not in the LP problem, an error will be returned.
Description

Use this function to delete a single variable from an existing LP problem by specifying the name of the variable; the interface is slightly easier than that of QSdelete_named_columns_list.

Example
/* Assume p is an initialized LP problem. */
/* Delete variable z.                     */

int rval;

rval = QSdelete_named_column (p, "z");
if (rval) {
    fprintf (stderr, 
            "could not delete variable, error code %d\n", rval);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003