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