XSLPchgtolset


Purpose
Add or change a set of convergence tolerances used for SLP variables
Synopsis
int XPRS_CC XSLPchgtolset(XSLPprob Prob, int nSLPTol, int *Status, double *Tols);
Arguments
Prob 
The current SLP problem.
nSLPTol 
Tolerance set for which values are to be changed. A zero value for nSLPTol 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 Tolerance
0 Closure tolerance (TC)
1 Absolute delta tolerance (TA)
2 Relative delta tolerance (RA)
3 Absolute coefficient tolerance (TM)
4 Relative coefficient tolerance (RM)
5 Absolute impact tolerance (TI)
6 Relative impact tolerance (RI)
7 Absolute slack tolerance (TS)
8 Relative slack tolerance (RS)

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, XSLPgettolset, XSLPloadtolsets


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.