QSopt QSget_intcount QSopt > Callable Library > Function List
  QSopt
  Downloads
  LP Info
  Software
  Problem Formats
  Callable Library
  Overview
Function List
  Rational Solver
  Beta
  Contact Info
Purpose
Obtain the number of integer variables.
Synopsis
int QSget_intcount (QSprob p, int *count)
Arguments
p a handle to an initialized problem.
count returns the number of integer variables in the problem.
Returns
A zero value if the function terminated correctly, and a non-zero value if an error occurred.
Description

This function can be used to obtain the number of integer variables in the problem, that is, the number of variables that are required to take on integer values.

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

int rval, count;

rval = QSget_intcount (p, &count);
if (rval) {
    fprintf (stderr, 
             "could not get integer count, error code %d\n", rval);
} else {
    printf ("Problem has %d integer variables\n", count);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003