QSopt QSset_param 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 specified parameter.
Synopsis
int QSset_param (QSprob p, int whichparam, int 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 parameters that determine the behavior of the QSopt solver. 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 QSdual_opt() solver to work with the Dantzig pricing rule. */

int rval;

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