QSopt QSget_rowcount 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 rows (constraints) in the problem.
Synopsis
int QSget_rowcount (QSprob p)
Arguments
p a handle to an initialized problem.
Returns
The number of rows (constraints) in the problem. If p has not been initialized, QSget_rowcount will return 0.
Description

The value returned by QSget_rowcount is the number of constraints in the problem; it does not include the objective row. A common use of this function is to obtain the value of nrows 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 nrows;

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