XSLPgettolset
PurposeRetrieve the values of a set of convergence tolerances for an SLP problemSynopsisint XPRS_CC XSLPgettolset(XSLPprob Prob, int nSLPTol, int *Status, double *Tols);Arguments
Prob The current SLP problem. nSLPTol The index of the tolerance set. Status Address of integer to receive the bit-map of status settings. May be NULL if not required. Tols Array of 9 double-precision values to hold the tolerances. May be NULL if not required.ExampleThe following example retrieves the values for tolerance set 3 and prints those which are set:double Tols[9]; int i, Status; XSLPgettolset(Prob, 3, &Status, Tols); for (i=0;i<9;i++) if (Status & (1<<i)) printf("\nTolerance %d = %lg",i,Tols[i]);Further informationIf Status or Tols is NULL, then the corresponding information will not be returned.
If Tols is not NULL, 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:
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) Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.