Initializing help system before first use

# XSLPchgtolset

Purpose
This subroutine is deprecated and will be removed in a future release.
Add or change a set of convergence tolerances used for SLP variables.
Topic areas
SLP, SLP-convergence
Synopsis
`int XPRS_CC XSLPchgtolset(XSLPprob prob, int ntols, int *status, double *tols);`
Arguments

prob | The current SLP problem.
tolset | Tolerance set for which values are to be changed. A zero value for tolset will create a new set.
status | Address of an integer holding a bitmap describing which tolerances are active in this set. See below for the settings.
tols | Array of 9 double precision values holding the values for the corresponding tolerances.

Example
The following example creates a new tolerance set with the default values for all tolerances except the relative delta tolerance, which is set to 0.005. It then changes the value of the absolute delta and absolute impact tolerances in tolerance set 6 to 0.015

    int status;
    double tols[9];

    tols[2] = 0.005;
    status = 1<<2;
    XSLPchgtolset(prob, 0, &status, tols);
    tols[1] = tols[5] = 0.015;
    status = 1<<1 | 1<<5;
    XSLPchgtolset(prob, 6, &status, tols);

Further information
The bits in status are set to indicate that the corresponding tolerance is to be changed in the tolerance set. The meaning of the bits is as follows:

Entry / Bit | Tolerance | XSLP constant | XSLP bit constant
--- | --- | --- | ---
0 | Closure tolerance (TC) | XSLP_TOLSET_TC | XSLP_TOLSETBIT_TC
1 | Absolute delta tolerance (TA) | XSLP_TOLSET_TA | XSLP_TOLSETBIT_TA
2 | Relative delta tolerance (RA) | XSLP_TOLSET_RA | XSLP_TOLSETBIT_RA
3 | Absolute coefficient tolerance (TM) | XSLP_TOLSET_TM | XSLP_TOLSETBIT_TM
4 | Relative coefficient tolerance (RM) | XSLP_TOLSET_RM | XSLP_TOLSETBIT_RM
5 | Absolute impact tolerance (TI) | XSLP_TOLSET_TI | XSLP_TOLSETBIT_TI
6 | Relative impact tolerance (RI) | XSLP_TOLSET_RI | XSLP_TOLSETBIT_RI
7 | Absolute slack tolerance (TS) | XSLP_TOLSET_TS | XSLP_TOLSETBIT_TS
8 | Relative slack tolerance (RS) | XSLP_TOLSET_RS | XSLP_TOLSETBIT_RS

The XSLP_TOLSET constants can be used to access the corresponding entry in the value arrays, while the XSLP_TOLSETBIT constants are used to set or retrieve which tolerance values are used for a given SLP variable. The members of the tols array corresponding to nonzero bit settings in status will be used to change the tolerance set. So, for example, if bit 3 is set in status, then tols[3] will replace the current value of the absolute coefficient tolerance. If a bit is not set in status, the value of the corresponding element of tols is unimportant.
Related topics
XSLPaddtolsets, XSLPdeltolsets, XSLPgettolset, XSLPloadtolsets
Parent Topic Library functions and the programming interface

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.