QSopt QSget_param_double 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 value of a numerical parameter.
Synopsis
int QSget_param_double (QSprob p, int whichparam, double *value)
Arguments
p a handle to an initialized problem.
whichparam specifies the parameter to be obtained.
value returns the value of the specified parameter.
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 access parameters associated with the QSopt solvers. The whichparam argument specifies the parameter and the value argument returns the current setting of the specified parameter.

Example
/* p is a QSprob, a handle to an existing LP problem.               */
/* Get the maximum time (in seconds) allowed in the QSopt solvers.  */

int rval;
double param;

rval = QSget_param_double (p, QS_PARAM_SIMPLEX_MAX_TIME, ¶m);
if (rval) {
    fprintf (stderr,
             "Could not get the parameter, error code %d\n", rval);
} else {
    printf (Simplex Maximum Time: %f seconds\n");
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003