QSopt QSget_colcount QSopt > Callable Library > Function List
  QSopt
  Downloads
  LP Info
  Software
  Problem Formats
  Callable Library
  Overview
Function List
  Rational Solver
  Beta
  Contact Info
Purpose
Return the number of columns in the problem.
Synopsis
int QSget_colcount (QSprob p)
Arguments
p a handle to an initialized problem.
Returns
The number of columns (variables) in the problem. If p has not been initialized, QSget_colcount will return 0.
Description

The value returned by QSget_colcount is the number of variables in the problem, it does not include any slack variables or artificial variables that may have been added during the solution procedure. A common use of this function is to obtain the value of ncols in order to use the functions that access the components of the LP solution.

Example
/* p is an initialized QSprob, a handle to an existing LP problem  */

int ncols;

ncols = QSget_colcount (p);
printf ("Number of variables: %d\n", ncols);
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003