QSopt QSdelete_col 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 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);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003