QSopt QSdelete_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 single row from the problem.
Synopsis
int QSdelete_row (QSprob p, int rowindex)
Arguments
p a handle to an initialized problem.
rowindex the index of the row 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 constraint from an existing LP problem; the interface is slightly easier than that of QSdelete_rows. (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_row() to remove row 3.                          */

int rval;

rval = QSdelete_row (p, 3);
if (rval) {
    fprintf (stderr, "QSdelete_row failed with return code %d\n", rval);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003