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