QSopt QSset_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
Set the value of a numerical parameter.
Synopsis
int QSset_param_double (QSprob p, int whichparam, double  newvalue)
Arguments
p a handle to an initialized problem.
whichparam specifies the parameter to be set.
newvalue specifies the new value of the 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 set various numerical parameters that determine the behavior of the QSopt solver with respect to a given problem. The whichparam field specifies the parameter to be set and the newvalue field specifies the value for the parameter.

Example
/* p is a QSprob, a handle to an existing LP problem.                 */
/* Set the time limit of the QSopt solvers to 10.5 seconds.           */

int rval;

rval = QSset_param_double (p, QS_PARAM_SIMPLEX_MAX_TIME, 10.5);
if (rval) {
    fprintf (stderr,
             "Could not set the parameter, error code %d\n", rval);
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003