QSopt QSdelete_setrows 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 set of rows specified by flags.
Synopsis
int QSdelete_setrows (QSprob p, int *flags)
Arguments
p a handle to an initialized problem.
flags an array of length nrows (the number of rows in the problem) specifying a 0 or 1 for each row; the rows corresponding to the 1's will 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 set of constraints from an existing LP problem, specifying the constraints as an array of flags, with a 0 entry indicating that a constraint should not be deleted and a 1 entry indicated that a constraint should be deleted.

Example
/* Assume p is an initialized LP problem with 4 rows.  */
/* Use QSdelete_setrows() to remove rows 1 and 3.      */

int rval;
int flags[4] = { 0, 1, 0, 1 };

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