QSopt QSdelete_named_row 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 row specified by name.
Synopsis
int QSdelete_named_row (QSprob p, const char *rowname)
Arguments
p a handle to an initialized problem.
rowname a string specifying the name of a row (constraint) to be deleted.
Returns
A zero value if the function terminated correctly, and a non-zero value if an error occurred. If the row is not in the LP problem, an error will be returned.
Description

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

Example
/* Assume p is an initialized LP problem.  */
/* Delete constraint r2.                   */

int rval;

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