QSopt QSget_param 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 specified parameter.
Synopsis
int QSget_param (QSprob p, int whichparam, int *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 that current setting of the specified parameter.

Example
/* p is a QSprob, a handle to an existing LP problem.  */
/* Get the current pricing rule used in QSdual_opt().  */

int rval, param;

rval = QSget_param (p, QS_PARAM_DUAL_PRICING, ¶m);
if (rval) {
    fprintf (stderr,
            "Could not get the parameter, error code %d\n", rval);
} else {
    switch (param) {
    case QS_PRICE_DDANTZIG:
        printf ("Dual Dantzig Pricing\n");
        break;
    case QS_PRICE_DSTEEP:
        printf ("Dual Steepest-Edge Pricing\n");
        break;
    case QS_PRICE_DMULTPARTIAL:
        printf ("Dual Multiple-Partial Pricing\n");
        break;
    default:
        printf ("Unknown dual pricing rule: %d\n", param);
        break;
    }
}
 
QSopt | Problem Formats | Downloads Back
Last Updated: November 2003