 |
 |
 |
 |
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);
|
 |