Initializing help system before first use

# problem.gettolset

Purpose
This subroutine is deprecated and will be removed in a future release.
Retrieve the values of a set of convergence tolerances for an SLP problem
Synopsis
`status = problem.gettolset(tolset, tols)`
Arguments

tolset | The index of the tolerance set.
status | The bit-map of status settings.
tols | Array of 9 double-precision values to hold the tolerances. May be None if not required.

Example
The following example retrieves the values for tolerance set 3 and prints those which are set:

    tols = []
    status = p.gettolset(3, tols)
    for i in range(9):
      if status &(1<<i):
        print("Tolerance {0} = {1}".format(i,tols[i]))

Further information

If tols is None, then the corresponding information will not be returned.

If tols is not None, then a set of 9 values will always be returned. status indicates which of these values is active as follows. Bit n of status is set if tols[n] is active, where n is:

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.

Related topics
Related topics
problem.addtolsets, problem.chgtolset, problem.deltolsets, problem.loadtolsets
Parent Topic Deprecated functionality

© 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.